restrans.m

From Spinach Documentation Wiki
Jump to: navigation, search

RLC circuit response calculation - converts a waveform from the ideal shape emitted by the instrument into the shape that comes out of the RLC circuit of the probe.

Syntax

    [X,Y,X0,Y0,dt]=restrans(X_user,Y_user,dt_user,omega,Q,model)

Arguments

      X_user   - in-phase part of the rotating frame
                 pulse waveform, a column vector of 
                 real numbers

      Y_user   - out-of-phase part of the rotating 
                 frame pulse waveform, a column vec-
                 tor of real numbers

      dt_user  - time slice duration, seconds

      omega    - RLC circuit resonance frequency in
                 radians per second, a real number

      Q        - RLC circuit quality factor, a real
                 positive number

      model    - input signal model, use 'pwc' for
                 piecewise-constant, and 'pwl' for
                 piecewise-linear input

Outputs

      X        - in-phase part of the rotating frame
                 pulse waveform distorted by the RLC
                 response, a column vector of real 
                 numbers

      Y        - out-of-phase part of the rotating
                 frame pulse waveform distorted by
                 the RLC response, a column vector
                 of real numbers

      X0       - in-phase part of the input waveform
                 on the same time grid as the distor-
                 ted waveform, a column vector of real 
                 numbers

      X0       - out-of-phase part of the input wave-
                 form on the same time grid as the 
                 distorted waveform, a column vector
                 of real numbers

      dt       - slice duration in the distorted wave-
                 form, seconds

Examples

The following output is produced by fundamentals/restrans_test.m example file:

Restrans a.png Restrans b.png

It illustrates the fact that 15N pulses are more sensitive to RLC circuit disortions than 1H pulses in a 14.1 Tesla magnet.

See also

Optimal control module


Version 2.7, authors: Uluk Rasulov, Ilya Kuprov