Difference between revisions of "Heterodyne.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(Normalise sequential blank lines)
m (Rename Arguments section heading to Parameters)
Line 6: Line 6:
 
     heterodyne(dt,exp_data,car_freq)
 
     heterodyne(dt,exp_data,car_freq)
  
==Arguments==
+
==Parameters==
  
 
   dt        - time step in the input data, seconds
 
   dt        - time step in the input data, seconds

Revision as of 18:49, 5 June 2026

Signal heterodyne from wall clock time into the rotating frame. Uses a GPU if one is available.

Syntax

    heterodyne(dt,exp_data,car_freq)

Parameters

  dt         - time step in the input data, seconds

  signal     - wall clock time signal, a column vector

  freq       - frequency to be demodulated, Hz

Outputs

  X, Y       - in-phase and out-of-phase parts of the
               rotating frame

Notes

The signal must be sampled with at least four points per period of the frequency being demodulated.

See also

Optimal control module

Version 2.9, authors: Anupama Acharya, Ilya Kuprov