Difference between revisions of "Nearest spin.m"
(Normalise sequential blank lines) |
m (Rename Arguments section heading to Parameters) |
||
| Line 6: | Line 6: | ||
k=nearest_spin(spin_system,n) | k=nearest_spin(spin_system,n) | ||
| − | == | + | ==Parameters== |
n - index of the spin in question | n - index of the spin in question | ||
Revision as of 18:50, 5 June 2026
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
Version 2.8, authors: Ilya Kuprov