nearest_spin.m

From Spinach Documentation Wiki
Jump to: navigation, search

Returns the index of the nearest spin to the one specified. Only spins for which Cartesian coordinates are available are considered.

Syntax

    k=nearest_spin(spin_system,n)

Parameters

    n   - index of the spin in question

Outputs

    k   - index of the nearest spin

See also

chemshifts.m, cubic_lattice.m, dilute.m, get_coupling.m, gtensorof.m, idxof.m, iselectron.m, isnucleus.m, isoswap.m, kill_spin.m, shift_iso.m, Spin system specification, Kernel_utilities

Version 2.8, authors: Ilya Kuprov