Difference between revisions of "Read wave.m"

From Spinach Documentation Wiki
Jump to: navigation, search
Line 1: Line 1:
Reads JCAMP-DX waveform files. Arguments:
+
Reads JCAMP-DX pulse waveform files.
 +
 
 +
==Syntax==
 +
 
 +
    [A,phi,Cx,Cy]=read_wave(filename,npoints)
 +
 
 +
==Description==
 +
JCAMP-DX is a standard format in which pulse shaped are often distributed.
 +
 
 +
==Arguments==
  
 
   filename  -  a string containing the name of the file
 
   filename  -  a string containing the name of the file
 
+
 
   npoints    -  waveform upsampling or downsampling is
 
   npoints    -  waveform upsampling or downsampling is
 
                   performed to this number of points
 
                   performed to this number of points
  
Note: phases are returned in degrees, amplitudes in percent.
+
==Returns==
 +
 
 +
  A          -  polar amplitude at each slice
 +
 +
  phi        -  polar phase at each slice, radians
 +
 +
  Cx        -  Cartesian amplitude in X at each slice
 +
 +
  Cy        -  Cartesian amplitude in Y at each slice

Revision as of 18:38, 15 July 2017

Reads JCAMP-DX pulse waveform files.

Syntax

    [A,phi,Cx,Cy]=read_wave(filename,npoints)

Description

JCAMP-DX is a standard format in which pulse shaped are often distributed.

Arguments

  filename   -   a string containing the name of the file

  npoints    -   waveform upsampling or downsampling is
                 performed to this number of points

Returns

  A          -   polar amplitude at each slice

  phi        -   polar phase at each slice, radians

  Cx         -   Cartesian amplitude in X at each slice

  Cy         -   Cartesian amplitude in Y at each slice