Difference between revisions of "Sweep2ticks.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(Created page with "Converts offset-sweep-npoints specification to axis ticks in Hz. Syntax: axis_hz=sweep2ticks(offs,sweep,npoints) Parameters: offs - offset from car...")
 
Line 1: Line 1:
−
Converts offset-sweep-npoints specification to axis ticks in Hz.
+
{{DISPLAYTITLE:function.m}} __NOTOC__
−
Syntax:
+
Converts offset-sweep-npoints specification into axis ticks in Hz. The function returns the frequency axis of the spectrum, suitable for use in Matlab functions like plot().
−
              axis_hz=sweep2ticks(offs,sweep,npoints)
 
  
−
Parameters:
+
==Syntax==
 +
 
 +
    axis_hz=sweep2ticks(offs,sweep,npoints)
 +
 
 +
==Arguments==
  
 
       offs    - offset from carrier frequency, Hz
 
       offs    - offset from carrier frequency, Hz
 +
 +
      sweep    - sweep width, Hz
 +
 +
    npoints    - number of points in the spectrum
 +
 +
==Outputs==
 +
 +
    axis_hz    - a column vector of axis ticks, Hz
  
−
      sweep    - sweep width, Hz
+
==See also==
 +
[[offset.m]], [[axis_1d.m]]
  
−
    npoints    - number of points in the spectrum
 
  
−
The function returns the frequency axis of the spectrum, suitable
+
''Version 2.3, authors: [[Author 1]]''
−
for use in functions like plot().
 

Revision as of 13:30, 29 December 2018

Converts offset-sweep-npoints specification into axis ticks in Hz. The function returns the frequency axis of the spectrum, suitable for use in Matlab functions like plot().

Syntax

    axis_hz=sweep2ticks(offs,sweep,npoints)

Arguments

      offs     - offset from carrier frequency, Hz

     sweep     - sweep width, Hz

   npoints     - number of points in the spectrum

Outputs

    axis_hz     - a column vector of axis ticks, Hz

See also

offset.m, axis_1d.m


Version 2.3, authors: Author 1