Difference between revisions of "Frqoffset.m"
m (Spot-edit Spinach function page first-line NOTOC and template fields) |
m (Rename Arguments section heading to Parameters) |
||
| Line 6: | Line 6: | ||
H=frqoffset(spin_system,H,parameters) | H=frqoffset(spin_system,H,parameters) | ||
| − | == | + | ==Parameters== |
H - Hamiltonian operator or commutati- | H - Hamiltonian operator or commutati- | ||
Revision as of 17:49, 5 June 2026
Adds omega*Lz Zeeman frequency offsets to the Hamiltonian; this is useful in liquid state NMR experiments.
Syntax
H=frqoffset(spin_system,H,parameters)
Parameters
H - Hamiltonian operator or commutati-
on superoperator
parameters.spins - a cell array giving the spins that
the offsetrs should be applied to,
e.g. {'1H','13C'}
parameters.offset - a cell array giving Zeeman offsets
on each of the spins listed in pa-
rameters.spins array.
Outputs
H - Hamiltonian operator or commutati-
on superoperator
Examples
This function is often called from Spinach context functions to prepare the Hamiltonian. See, for example, liquid.m context.
Notes
Offset transformation of this kind is an approximation, use rotframe.m or intrep.m if a rigorous treatment of second order effects is required.
See also
carrier.m, rotframe.m, intrep.m, operator.m
Version 2.2, authors: Ilya Kuprov