dualcursor

Add dual vertical cursors to a plot.

https://github.com/michellehirsch/MATLAB-Dual-Cursors

Download
Download

You are now following this Submission

Editor's Note: This file was selected as MATLAB Central Pick of the Week

Cite As

Michelle Hirsch (2026). dualcursor (https://github.com/michellehirsch/MATLAB-Dual-Cursors), GitHub. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.9.0

Moved code to GitHub. Removed mistaken attribution.

Download
1.8.0

Enhanced support for zoom and pan. If you zoom or pan such that the cursors go off screen, they are automatically brought back in to the visible part of the axis. Good stuff.

Download
1.6.0

Removed hype from description.

Download
1.4.0

A few small feature requests.

Download
1.3.0

A few small updates based on user feedback.

Download
1.2.0

Small fix - now works when the axes is parented to a uipanel, too (I wrote the original back in the day when the figure was the only parent an axes ever had ...)

Download
1.1.0

Enhancement - now works when axes is parented to uipanel.

Download
1.0.0

Now works (hopefully) with plot types that create compound (hggroup) objects, such as stem. Thanks to Ralph Schmidt for pointing out the bug.

Download
To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.