Removes nuclear spins from a spin system.
NewSys = nucspinrmv(Sys,rmvidx)
This function removes one or more nuclear spins from the spin
system Sys
and returns the resulting spin system
in NewSys
.
rmvidx
specifies the indices of the nuclei to be removed.
E.g., rmvidx=1
indicates the first nucleus, rmvidx=[2 4]
indicates the second and the fourth nuclei.
First we define a spin system with 2 nuclei
Sys = struct('S',1/2,'g',[2 2 2.2]); Sys = nucspinadd(Sys,'63Cu',[50 50 520]); Sys = nucspinadd(Sys,'14N',[3 3 9],[],[-1 -1 2])
The following removes the nitrogen nucleus
Sys = nucspinrmv(Sys,2)
spin system structures, nucspinadd, nucspinkeep