File Exchange

image thumbnail


version (1.85 KB) by Patrick
Dynamically view X and Y linecuts of surf or image data


Updated 17 Aug 2015

From GitHub

View license on GitHub

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.

Cite As

Patrick (2021). linecut (, GitHub. Retrieved .

Comments and Ratings (3)

ziyang ye

Anyone tell me how to fix the problem below?

Error using matlab.ui.Figure/get
Unrecognized property Xdata for class Figure.

Error in linecut (line 21)

Zengyi Du

a good try, but try 'improfile' command instead.

joao mello

MATLAB Release Compatibility
Created with R2012b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!