Difference between revisions of "Fapt2sfo.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(Normalise sequential blank lines)
m (Rename Arguments section heading to Parameters)
Line 6: Line 6:
 
     [wave,dt,time_grid]=fapt2sfo(fapt,time_grid)
 
     [wave,dt,time_grid]=fapt2sfo(fapt,time_grid)
  
−
==Arguments==
+
==Parameters==
  
 
     fapt  - a cell array of 5-element row vectors with of  
 
     fapt  - a cell array of 5-element row vectors with of  

Revision as of 18:48, 5 June 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)

Parameters

   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

Optimal control module

Version 2.9, authors: Ilya Kuprov