Sweep2ticks.m

From Spinach Documentation Wiki
Revision as of 17:43, 8 December 2015 by Admin (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Converts offset-sweep-npoints specification to axis ticks in Hz. Syntax:

              axis_hz=sweep2ticks(offs,sweep,npoints)

Parameters:

      offs     - offset from carrier frequency, Hz
     sweep     - sweep width, Hz
   npoints     - number of points in the spectrum

The function returns the frequency axis of the spectrum, suitable for use in functions like plot().