Data Cursor on Mouse Move
Display and update the pixel value from image in the figure title bar on mouse movement.
Usage:
z=rand(10,10);
h = image(z)
set(gcf,'WindowButtonMotionFcn', {@getPixelOnMouseMove,h});
Now move the mouse over the image and see the pixel value in the figure title bar.
Bugs and comments are welcome.
Zitieren als
Durga Lal Shrestha (2025). Data Cursor on Mouse Move (https://de.mathworks.com/matlabcentral/fileexchange/32900-data-cursor-on-mouse-move), MATLAB Central File Exchange. Abgerufen.
Kompatibilität der MATLAB-Version
Plattform-Kompatibilität
Windows macOS LinuxKategorien
- MATLAB > Graphics > Images > Display Image >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
| Version | Veröffentlicht | Versionshinweise | |
|---|---|---|---|
| 1.2.0.0 | - Update with overobj3 subfunction which returns handle of object that the pointer is over.
|
||
| 1.1.0.0 | Bug fixed on subfunction "closest" and some comments are added. |
||
| 1.0.0.0 |
