Difference between revisions of "Dist range.m"

From Spinach Documentation Wiki
Jump to: navigation, search
Line 4: Line 4:
 
==Syntax==
 
==Syntax==
  
−
     [rmin,rmax]=dist_range(np,tmax)
+
     [rmin,rmax]=dist_range(dt,tmax,expt)
  
 
==Arguments==
 
==Arguments==
  
−
       np -  number of points in the time grid
+
       dt -  interval duration of the uniform time grid
 
   
 
   
 
     tmax  -  the time (seconds) of the last point in the
 
     tmax  -  the time (seconds) of the last point in the
 
             grid if the first point is zero
 
             grid if the first point is zero
 +
 +
    expt  -  'ridme' or 'deer'
 
   
 
   
 
==Outputs==
 
==Outputs==
Line 24: Line 26:
 
For a 2 microsecond DEER trace containing 512 points:
 
For a 2 microsecond DEER trace containing 512 points:
  
−
   >> [rmin,rmax]=dist_range(512,2e-6)
+
   >> [rmin,rmax]=dist_range(4e-9,2e-6,'deer')
 
   
 
   
−
   rmin = 9.3398
+
   rmin = 9.4078
 
   
 
   
 
   rmax = 59.2655
 
   rmax = 59.2655
Line 36: Line 38:
  
  
−
''Version 2.5, authors: [[Jake Keeley]], [[Ilya Kuprov]]''
+
''Version 2.8, authors: [[Jake Keeley]], [[Ilya Kuprov]]''

Revision as of 09:19, 29 July 2023

Returns the mathematical bounds for the distance range covered by a DEER trace with the specified number of points and duration, assuming uniform time step.

Syntax

    [rmin,rmax]=dist_range(dt,tmax,expt)

Arguments

     dt  -  interval duration of the uniform time grid

   tmax  -  the time (seconds) of the last point in the
            grid if the first point is zero

   expt  -  'ridme' or 'deer'

Outputs

   rmin  -  minimum distance supported by the
            grid, Angstrom 

   rmax  -  maximum distance supported by the 
            grid, Angstrom

Examples

For a 2 microsecond DEER trace containing 512 points:

 >> [rmin,rmax]=dist_range(4e-9,2e-6,'deer')

 rmin = 9.4078

 rmax = 59.2655

See also

Neural network module

DEER/PELDOR experiments


Version 2.8, authors: Jake Keeley, Ilya Kuprov