Difference between revisions of "Heterodyne.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(Created page with "{{DISPLAYTITLE:heterodyne.m}} __NOTOC__ Signal heterodyne from wall clock time into the rotating frame. Uses a GPU if one is available. ==Syntax== heterodyne(dt,exp_dat...")
 
(Sync syntax/arguments/outputs with current Spinach source)
Line 1: Line 1:
 
{{DISPLAYTITLE:heterodyne.m}} __NOTOC__
 
{{DISPLAYTITLE:heterodyne.m}} __NOTOC__
 +
 
Signal heterodyne from wall clock time into the rotating frame. Uses a GPU if one is available.
 
Signal heterodyne from wall clock time into the rotating frame. Uses a GPU if one is available.
  
 
==Syntax==
 
==Syntax==
  
    heterodyne(dt,exp_data,car_freq)
+
[X,Y]=heterodyne(dt,signal,freq)
  
 
==Arguments==
 
==Arguments==
  
  dt        - time step in the input data, seconds
+
dt        - time step in the input data, seconds
 
   
 
   
 
   signal    - wall clock time signal, a column vector
 
   signal    - wall clock time signal, a column vector
Line 16: Line 17:
 
==Outputs==
 
==Outputs==
  
  X, Y      - in-phase and out-of-phase parts of the
+
X, Y      - in-phase and out-of-phase parts of the
 
                 rotating frame
 
                 rotating frame
  
 
==Notes==
 
==Notes==
 +
 
The signal must be sampled with at least four points per period of the frequency being demodulated.
 
The signal must be sampled with at least four points per period of the frequency being demodulated.
  
 
==See also==
 
==See also==
 +
 
[[Optimal control module]]
 
[[Optimal control module]]
  
  
 
''Version 2.9, authors: [[Anupama Acharya]], [[Ilya Kuprov]]''
 
''Version 2.9, authors: [[Anupama Acharya]], [[Ilya Kuprov]]''

Revision as of 15:03, 5 April 2026


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

Syntax

[X,Y]=heterodyne(dt,signal,freq)

Arguments

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