Difference between revisions of "Sweep2ticks.m"
(Normalise sequential blank lines) |
|||
| Line 20: | Line 20: | ||
==See also== | ==See also== | ||
[[offset.m]], [[axis_1d.m]], [[plot_1d.m]], [[plot_2d.m]], [[plot_3d.m]] | [[offset.m]], [[axis_1d.m]], [[plot_1d.m]], [[plot_2d.m]], [[plot_3d.m]] | ||
| − | |||
''Version 2.3, authors: [[Ilya Kuprov]]'' | ''Version 2.3, authors: [[Ilya Kuprov]]'' | ||
Revision as of 11:30, 25 April 2026
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, plot_1d.m, plot_2d.m, plot_3d.m
Version 2.3, authors: Ilya Kuprov