Difference between revisions of "Get coupling.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(Normalise sequential blank lines)
m (Rename Arguments section heading to Parameters)
Line 6: Line 6:
 
     A=get_coupling(spin_system,n,k)
 
     A=get_coupling(spin_system,n,k)
  
==Arguments==
+
==Parameters==
  
 
     n,k  - indices of the two spins as they appear  
 
     n,k  - indices of the two spins as they appear  

Revision as of 18:49, 5 June 2026

Extracts the 3x3 coupling tensor between a pair of spins back from the spin_system data structure.

Syntax

    A=get_coupling(spin_system,n,k)

Parameters

    n,k  - indices of the two spins as they appear 
           in spin_system.comp.isotopes

Outputs

    A  - 3x3 coupling tensor in rad/s

See also

Spin system editing

Version 2.7, authors: Ilya Kuprov