Difference between revisions of "Crop 2d.m"
(Update function See also links and function index membership) |
(removed link to deleted function page bloch_sph_plot.m (removed per IK instruction 2026-08-30)) |
||
| (One intermediate revision by the same user not shown) | |||
| Line 12: | Line 12: | ||
crop_ranges - cropping bounds, supplied in the following | crop_ranges - cropping bounds, supplied in the following | ||
format: {[f1_min f1_max],[f2_min f2_max]} | format: {[f1_min f1_max],[f2_min f2_max]} | ||
| − | + | ||
| + | The following subfields are required in the parameters structure: | ||
| + | |||
parameters.sweep - one or two sweep widths, Hz | parameters.sweep - one or two sweep widths, Hz | ||
| Line 24: | Line 26: | ||
spec - 2D matrix containing the cropped spectrum | spec - 2D matrix containing the cropped spectrum | ||
| − | parameters - the updated parameters structure | + | parameters - the updated parameters structure; the new |
| + | offset, sweep, and zerofill reproduce the | ||
| + | retained axis points on the ft_axis grid | ||
==See also== | ==See also== | ||
| − | [[plot_2d.m]], [[int_2d.m]], [[apodisation.m]], [[axis_1d | + | [[plot_2d.m]], [[int_2d.m]], [[apodisation.m]], [[axis_1d.m]], [[bwr_cmap.m]], [[contspacing.m]], [[cylgrid.m]], [[fid2ascii.m]], [[ft_axis.m]], [[heterodyne.m]], [[molplot.m]], [[mri_2d_plot.m]], [[plot_1d.m]], [[plot_3d.m]], [[plot_uf.m]], [[s2json.m]], [[scale_figure.m]], [[slice_2d.m]], [[stack_2d.m]], [[sweep2ticks.m]], [[volplot.m]], [[write_movie.m]], [[xyz2pd.m]], [[zoom_3d.m]], [[Import,_export,_and_visualisation]], [[Kernel_utilities]] |
''Version 2.1, authors: [[Ilya Kuprov]]'' | ''Version 2.1, authors: [[Ilya Kuprov]]'' | ||
Latest revision as of 10:10, 30 August 2026
2D spectrum cropping utility that crops spectra to user-specified ppm ranges while respecting digital resolution.
Syntax
[spec,parameters]=crop_2d(spin_system,spec,parameters,crop_ranges)
Parameters
spec - 2D matrix containing the spectrum
crop_ranges - cropping bounds, supplied in the following
format: {[f1_min f1_max],[f2_min f2_max]}
The following subfields are required in the parameters structure:
parameters.sweep - one or two sweep widths, Hz
parameters.spins - cell array with one ot two character
strings specifying the working spins.
parameters.offset - one or two transmitter offsets, Hz
Outputs
spec - 2D matrix containing the cropped spectrum
parameters - the updated parameters structure; the new
offset, sweep, and zerofill reproduce the
retained axis points on the ft_axis grid
See also
plot_2d.m, int_2d.m, apodisation.m, axis_1d.m, bwr_cmap.m, contspacing.m, cylgrid.m, fid2ascii.m, ft_axis.m, heterodyne.m, molplot.m, mri_2d_plot.m, plot_1d.m, plot_3d.m, plot_uf.m, s2json.m, scale_figure.m, slice_2d.m, stack_2d.m, sweep2ticks.m, volplot.m, write_movie.m, xyz2pd.m, zoom_3d.m, Import,_export,_and_visualisation, Kernel_utilities
Version 2.1, authors: Ilya Kuprov