kill_spin.m
Removes the specified spins from the spin_system structure and updates it accordingly.
Syntax
spin_system=kill_spin(spin_system,hit_list)
Parameters
spin_system - primary Spinach data structure
hit_list - a vector of integers or a logical
vector giving the numbers of spins
to be removed from the system
Outputs
spin_system - the data structure with the indica-
ted spins and all dependent infor-
mation (basis, assumptions) removed
Examples
This function is used inside dilute.m to remove non-magnetic isotopes.
Notes
Basis and assumption information is destroyed by this function; you would need to call basis.m and assume.m again.
See also
dilute.m, basis.m, assume.m, create.m, chemshifts.m, cubic_lattice.m, get_coupling.m, gtensorof.m, idxof.m, iselectron.m, isnucleus.m, isoswap.m, nearest_spin.m, shift_iso.m, Kernel_utilities
Version 2.2, authors: Ilya Kuprov, Luke Edwards