Difference between revisions of "Stack 2d.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(Normalise sequential blank lines)
m (Rename Arguments section heading to Parameters)
Line 6: Line 6:
 
     stack_2d(spin_system,spectrum,parameters,stack_dim,alpha_fun)
 
     stack_2d(spin_system,spectrum,parameters,stack_dim,alpha_fun)
  
−
==Arguments==
+
==Parameters==
  
 
     spectrum - a real matrix containing the 2D NMR spectrum
 
     spectrum - a real matrix containing the 2D NMR spectrum

Revision as of 17:52, 5 June 2026

Stack plotting utility for 2D NMR spectra.

Syntax

    stack_2d(spin_system,spectrum,parameters,stack_dim,alpha_fun)

Parameters

    spectrum - a real matrix containing the 2D NMR spectrum

    parameters.sweep       -  one or two sweep widths, Hz

    parameters.spins       -  cell array with one ot two character
                              strings specifying the working spins

    parameters.offset      -  one or two transmitter offsets, Hz

    parameters.axis_units  -  axis units ('ppm','Hz','Gauss')

    stack_dim              -  stacking dimension, 1 or 2

    alpha_fun              -  optional function handle that takes
                              a spectral slice and returns the al-
                              pha value that regulates stack line
                              opacity

Outputs

this function updates the current figure

Examples

Below is the output of examples/nmr_solids/wise_mas_gly.m example file containing the WISE simulation for 13C-labelled glycine powder under magic angle spinning.

Bunny wise.png

See also

Data analysis and plotting

Data export and plotting

Version 2.8, authors: Ilya Kuprov