Stitch.m

From Spinach Documentation Wiki
Jump to: navigation, search

Stitching function for bidirectionally propagated 3D experiments. Syntax:

 fid=stitch(spin_system,L,rho_stack,coil_stack,mtp_oper,mtp_time,t1,t2,t3)

Parameters:

            L - spin system Liouvillian

    rho_stack - state vector stack from the forward part of
                the simulation
   coil_stack - coil vector stack from the backward part of
                the sumulation
     mtp_oper - operator for the pulse to be executed in the
                middle of the t2 period
     mtp_time - duration for the pulse to be executed in the
                middle of the t2 period
    t1.nsteps - number of time steps in t1
    t2.nsteps - number of time steps in t2
    t3.nsteps - number of time steps in t3

The function returns the three-dimensional free induction decay.