Menu

slice_disp

A. Smith

slice_disp

The ‘slice_disp’ program is a tool for viewing and extracting 1D slices of a 2D spectrum. One executes ‘slice_disp’ exactly the same way as ‘quik_2Dplot’, using a ‘spec’ variable and a ‘plotpar’ variable. ‘slice_disp’ will then show the spectrum, but also includes 1D plots above and beside the spectrum. These initially show the projection across each spectrum dimension, but the user may then click on the 2D spectrum to obtain slices through both dimensions. For zooming, one may use the MATLAB zoom tool as usual. In order to store the slices, one must call ‘slice_disp’ with one or two outputs, and ‘slice_disp’ will allow the user to select a point in the spectrum to slice. When storing selected slices, the program will terminate after the user responds ‘y’ on the command line.

To store both 1D slices in a cell:

slices=slice_disp(spec,plotpar);

To store each slice separately:

[slice1 slice2]=slice_disp(spec,plotpar);

To display slices without storing the results:

slice_disp(spec,plotpar)

Auth0 Logo