Difference between revisions of "Stitch.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(Sync syntax/arguments/outputs with current Spinach source)
(sync with Spinach main f053e432: add t2.timestep)
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{DISPLAYTITLE:stitch.m}} __NOTOC__
 
{{DISPLAYTITLE:stitch.m}} __NOTOC__
−
 
 
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.
 
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==
 
==Syntax==
  
−
fid=stitch(spin_system,L,rho_stack,coil_stack,mec_oper,mec_time,t1,t2,t3,tdir)
+
    fid=stitch(spin_system,L,rho_stack,coil_stack,mec_oper,mec_time,t1,t2,t3,tdir)
  
−
==Arguments==
+
==Parameters==
−
 
 
−
L - spin system Liouvillian
 
  
 +
            L - spin system Liouvillian
 +
 
     rho_stack - state vector stack from the forward part of
 
     rho_stack - state vector stack from the forward part of
 
                 the simulation
 
                 the simulation
−
 
+
 
     coil_stack - coil vector stack from the backward part of
 
     coil_stack - coil vector stack from the backward part of
 
                 the sumulation
 
                 the sumulation
−
 
+
 
       mec_oper - cell array of operators in the midpoint event
 
       mec_oper - cell array of operators in the midpoint event
 
                 chain, e.g. {Lx,L,Sy}
 
                 chain, e.g. {Lx,L,Sy}
−
 
+
 
       mec_time - cell array of durations of each event at the
 
       mec_time - cell array of durations of each event at the
 
                 midpoint of the t2 evolution period
 
                 midpoint of the t2 evolution period
−
 
+
 
     t1.nsteps - number of time steps in t1
 
     t1.nsteps - number of time steps in t1
−
 
+
 
     t2.nsteps - number of time steps in t2
 
     t2.nsteps - number of time steps in t2
−
 
+
 +
  t2.timestep - duration of each time step in t2
 +
 
     t3.nsteps - number of time steps in t3
 
     t3.nsteps - number of time steps in t3
−
 
+
 
           tdir - time direction for state and coil propagation,
 
           tdir - time direction for state and coil propagation,
 
                 the default is '+-'
 
                 the default is '+-'
Line 34: Line 35:
 
==Outputs==
 
==Outputs==
  
−
fid - three-dimensional free induction decay
+
          fid - three-dimensional free induction decay
  
 
==See also==
 
==See also==
−
 
+
[[hnco.m]], [[noesyhsqc.m]], [[hncoca.m]], [[adelim.m]], [[coherence.m]], [[correlation.m]], [[dfpt.m]], [[homospoil.m]], [[human2opspec.m]], [[lin2lm.m]], [[lin2lmn.m]], [[lm2lin.m]], [[lmn2lin.m]], [[path_trace.m]], [[scomponents.m]], [[sinkhole.m]], [[sparse2csr.m]], [[sphten2zeeman.m]], [[zte.m]], [[Kernel_utilities]]
−
[[hnco.m]], [[noesyhsqc.m]], [[hncoca.m]]
 
−
 
 
  
 
''Version 2.3, authors: [[Ilya Kuprov]]''
 
''Version 2.3, authors: [[Ilya Kuprov]]''

Latest revision as of 07:39, 30 August 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)

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

     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

  t2.timestep - duration of each time step 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, adelim.m, coherence.m, correlation.m, dfpt.m, homospoil.m, human2opspec.m, lin2lm.m, lin2lmn.m, lm2lin.m, lmn2lin.m, path_trace.m, scomponents.m, sinkhole.m, sparse2csr.m, sphten2zeeman.m, zte.m, Kernel_utilities

Version 2.3, authors: Ilya Kuprov