nearest_spin.m

From Spinach Documentation Wiki
Revision as of 11:57, 28 July 2023 by Kuprov (talk | contribs) (Created page with "{{DISPLAYTITLE:nearest_spin.m}} __NOTOC__ Returns the index of the nerest spin to the one specified. Only spins for which Cartesian coordinates are available are considered....")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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

Syntax

    k=nearest_spin(spin_system,n)

Arguments

    n   - index of the spin in question

Outputs

    k   - index of the nearest spin

See also

Spin system specification

Spin system editing


Version 2.8, authors: Ilya Kuprov