isoswap.m

From Spinach Documentation Wiki
Revision as of 18:49, 5 June 2026 by Kuprov (talk | contribs) (Rename Arguments section heading to Parameters)
Jump to: navigation, search

Makes isotope replacements in the input structures. All interactions are automatically scaled as necessary.

Syntax

    [sys,inter]=isoswap(sys,inter,spins,new_iso)

Parameters

  sys, inter  - Spinach input data structures

  spins       - a vector of integers specifying
                spin numbers

  new_iso     - character string specifying 
                the new isotope

Outputs

    sys, inter  - Spinach input data structures

Notes

Quadratic and higher order couplings are wiped and a warning is printed; those interactions are not transferable.

See also

Spin system specification

Spin system editing

Version 2.9, authors: Ilya Kuprov