Several related functions:
CreateCursor sets up a vertical cursor on all axes in a figure. The cursors can be moved around using the mouse.
Multiple cursors are supported in each figure
GetCursorLocation returns the location of a cursor while SetCursorLocation sets it.
DeleteCursor removes a cursor.
Objects belonging to each cursor have their handles stored in the figure application data area. Callbacks for each object serve to link their position on the axes.
Malcolm Lidierth (2022). Data cursors for figure window (https://www.mathworks.com/matlabcentral/fileexchange/14093-data-cursors-for-figure-window), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!