kill_spin.m

From Spinach Documentation Wiki
Jump to: navigation, search

Removes the specified spins from the spin_system structure and updates it accordingly.

Syntax

    spin_system=kill_spin(spin_system,hit_list)

Arguments

    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


Version 2.2, authors: Ilya Kuprov, Luke Edwards