Difference between revisions of "Dist range.m"
| Line 1: | Line 1: | ||
{{DISPLAYTITLE:dist_range.m}} __NOTOC__ | {{DISPLAYTITLE:dist_range.m}} __NOTOC__ | ||
| − | + | 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== | ==Syntax== | ||
| − | [rmin,rmax]=dist_range(np,tmax | + | [rmin,rmax]=dist_range(np,tmax) |
==Arguments== | ==Arguments== | ||
| Line 13: | Line 13: | ||
grid if the first point is zero | grid if the first point is zero | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
==Outputs== | ==Outputs== | ||
| Line 31: | Line 22: | ||
==Examples== | ==Examples== | ||
| − | + | For a 2 microsecond DEER trace containing 512 points: | |
| − | >> [rmin,rmax]=dist_range(512,2e-6 | + | >> [rmin,rmax]=dist_range(512,2e-6) |
| − | rmin = | + | rmin = 9.3398 |
rmax = 59.2655 | rmax = 59.2655 | ||
Revision as of 20:00, 29 November 2020
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(np,tmax)
Arguments
np - number of points in the time grid
tmax - the time (seconds) of the last point in the
grid if the first point is zero
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(512,2e-6) rmin = 9.3398 rmax = 59.2655
See also
Version 2.5, authors: Jake Keeley, Ilya Kuprov