Difference between revisions of "Stitch.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(Normalise sequential blank lines)
m (Spot-update function page against current Spinach source)
Line 4: Line 4:
 
==Syntax==
 
==Syntax==
  
−
     fid=stitch(spin_system,L,rho_stack,coil_stack,mtp_oper,mtp_time,t1,t2,t3)
+
     fid=stitch(spin_system,L,rho_stack,coil_stack,mec_oper,mec_time,t1,t2,t3,tdir)
  
 
==Arguments==
 
==Arguments==
Line 16: Line 16:
 
                 the sumulation
 
                 the sumulation
 
   
 
   
−
       mtp_oper - operator for the pulse to be executed in the
+
       mec_oper - cell array of operators in the midpoint event
−
                 middle of the t2 period
+
                 chain, e.g. {Lx,L,Sy}
 
   
 
   
−
       mtp_time - duration for the pulse to be executed in the
+
       mec_time - cell array of durations of each event at the
−
                 middle of the t2 period
+
                 midpoint of the t2 evolution period
 
   
 
   
 
     t1.nsteps - number of time steps in t1
 
     t1.nsteps - number of time steps in t1
Line 27: Line 27:
 
   
 
   
 
     t3.nsteps - number of time steps in t3
 
     t3.nsteps - number of time steps in t3
 +
 +
          tdir - time direction for state and coil propagation,
 +
                the default is '+-'
  
 
==Outputs==
 
==Outputs==

Revision as of 15:03, 5 June 2026

Stitching function for bidirectionally propagated 3D NMR pulse sequences. Propagate your initial condition forward to some midpoint, propagate your detection state backward to the same midpoint and use this function to obtain the 3D free induction decay (http://dx.doi.org/10.1016/j.jmr.2014.04.002) at the price of two 2D simulations.

Syntax

    fid=stitch(spin_system,L,rho_stack,coil_stack,mec_oper,mec_time,t1,t2,t3,tdir)

Arguments

            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

     mec_oper - cell array of operators in the midpoint event
                chain, e.g. {Lx,L,Sy}

     mec_time - cell array of durations of each event at the
                midpoint of the t2 evolution 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

         tdir - time direction for state and coil propagation,
                the default is '+-'

Outputs

          fid - three-dimensional free induction decay

See also

hnco.m, noesyhsqc.m, hncoca.m

Version 2.3, authors: Ilya Kuprov