Add dual vertical cursors to a plot.
Vous suivez désormais cette soumission
- Les mises à jour seront visibles dans votre flux de contenu suivi
- Selon vos préférences en matière de communication il est possible que vous receviez des e-mails
Note de l’éditeur : This file was selected as MATLAB Central Pick of the Week
Dual cursors are useful for picking relative measurements off of a plot; for instance - calculate the period of a time series, or the relative amplitude of two frequencies. A picture's worth a thousand words, so take a peek.
Key Features:
- Basic syntax: dualcursor on / dualcursor off
- Extended syntax supports a high level of control
- Works with live data streams
- Works in GUIDE guis
- Includes delta calculations (x2-x2, y2-y1)
- Export selected region to a new figure or to the workspace
Citation pour cette source
Michelle Hirsch (2026). dualcursor (https://github.com/michellehirsch/MATLAB-Dual-Cursors), GitHub. Extrait(e) le .
Remerciements
A inspiré : Speech Analysis using LPC, dualcursor2, stackobj, dtmcursor
Informations générales
Compatibilité avec les versions de MATLAB
- Compatible avec toutes les versions
Plateformes compatibles
- Windows
- macOS
- Linux
Les versions qui utilisent la branche GitHub par défaut ne peuvent pas être téléchargées
| Version | Publié le | Notes de version | Action |
|---|---|---|---|
| 1.9.0.0 | Moved code to GitHub. Removed mistaken attribution. |
||
| 1.8.0.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. |
||
| 1.6.0.0 | Removed hype from description. |
||
| 1.4.0.0 | A few small feature requests. |
||
| 1.3.0.0 | A few small updates based on user feedback. |
||
| 1.2.0.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 ...) |
||
| 1.1.0.0 | Enhancement - now works when axes is parented to uipanel. |
||
| 1.0.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. |
