LINECUT(H) places a crosshair on the 3D plot with handle H. H can be a handle to a pcolor, surf, etc. plot or a non-RGB image. The crosshair can be moved with either the mouse or the arrow keys. Pressing enter removes the crosshair and stops linecut.
CH = LINECUT(H) returns a two element vector of handles to the X and Y linecut objects respectively.
Note that surface plots must have X and Y data that are either vectors or meshgrid formatted matrices.
Create scripts with code, output, and formatted text in a single executable document.