Plot 1d.m

From Spinach Documentation Wiki
Jump to: navigation, search

1D plotting utility. Uses the same parameters structure as 1D pulse sequences. Input syntax:


Input parameters:

   parameters.sweep              sweep width, Hz
   parameters.spins              spin species, e.g. {'1H'}
   parameters.offset             transmitter offset, Hz
   parameters.axis_units         axis units ('ppm','Gauss',
   parameters.derivative         if set to 1, the spectrum is
                                 differentiated before plotting
   parameters.invert_axis        if set to 1, the frequency axis 
                                 is inverted before plotting

Any extra arguments given to this function will be passed to the built-in Matlab function plot().