Difference between revisions of "Fapt2sfo.m"
(Normalise sequential blank lines) |
|||
| Line 30: | Line 30: | ||
==See also== | ==See also== | ||
[[Optimal control module]] | [[Optimal control module]] | ||
| − | |||
''Version 2.9, authors: [[Ilya Kuprov]]'' | ''Version 2.9, authors: [[Ilya Kuprov]]'' | ||
Revision as of 12:25, 25 April 2026
Converts a freq-ampl-phase-time specification of a pulse sequence into the corresponding single frequency origin waveform that is compatible with GRAPE optimisations.
Syntax
[wave,dt,time_grid]=fapt2sfo(fapt,time_grid)
Arguments
fapt - a cell array of 5-element row vectors with of
the following structure: [frequency (Hz), amp-
litude (rad/s), phase at t=0 (radians), start
time (seconds), end time (seconds)]
time_grid - optional vector of time grid ticks; when
not provided, the grid is made at twice
the Nyquist-Shannon minimum sampling ra-
te of the highest frequency present
Outputs
wave - pulse sequence as a single waveform, a matrix
with two rows, corresponding to X and Y compo-
nents
dt - step duration of the time grid, seconds
time_grid - row vector of time grid ticks
See also
Version 2.9, authors: Ilya Kuprov