Difference between revisions of "Sweep2ticks.m"
(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...") |
(Update function See also links and function index membership) |
||
| (6 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
| − | Converts offset-sweep-npoints specification | + | {{DISPLAYTITLE:sweep2ticks.m}} __NOTOC__ |
| − | + | 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(). | |
| − | |||
| − | Parameters | + | ==Syntax== |
| + | |||
| + | axis_hz=sweep2ticks(offs,sweep,npoints) | ||
| + | |||
| + | ==Parameters== | ||
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 | ||
| − | + | ==See also== | |
| + | [[frqoffset.m]], [[axis_1d.m]], [[plot_1d.m]], [[plot_2d.m]], [[plot_3d.m]], [[apodisation.m]], [[contspacing.m]], [[crop_2d.m]], [[ft_axis.m]], [[heterodyne.m]], [[int_2d.m]], [[molplot.m]], [[mri_2d_plot.m]], [[plot_uf.m]], [[slice_2d.m]], [[stack_2d.m]], [[volplot.m]], [[xyz2pd.m]], [[zoom_3d.m]], [[Kernel_utilities]] | ||
| − | + | ''Version 2.3, authors: [[Ilya Kuprov]]'' | |
| − | |||
Latest revision as of 18:42, 6 June 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)
Parameters
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
frqoffset.m, axis_1d.m, plot_1d.m, plot_2d.m, plot_3d.m, apodisation.m, contspacing.m, crop_2d.m, ft_axis.m, heterodyne.m, int_2d.m, molplot.m, mri_2d_plot.m, plot_uf.m, slice_2d.m, stack_2d.m, volplot.m, xyz2pd.m, zoom_3d.m, Kernel_utilities
Version 2.3, authors: Ilya Kuprov