Code covered by the BSD License  

Highlights from
Data Cursor on Mouse Move

Be the first to rate this file! 6 Downloads (last 30 days) File Size: 2.38 KB File ID: #32900
image thumbnail

Data Cursor on Mouse Move

by Durga Lal Shrestha

 

15 Sep 2011 (Updated 15 Sep 2011)

Display and update the pixel value from image in the figure title bar on mouse movement.

| Watch this File

File Information
Description

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.

MATLAB release MATLAB 7.10 (2010a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Updates
15 Sep 2011

Bug fixed on subfunction "closest" and some comments are added.

Tag Activity for this File
Tag Applied By Date/Time
cursor Durga Lal Shrestha 15 Sep 2011 11:30:43
windowbuttonmotionfcn Durga Lal Shrestha 15 Sep 2011 11:30:43
pixel Durga Lal Shrestha 15 Sep 2011 11:30:43
mouse move Durga Lal Shrestha 15 Sep 2011 11:30:43

Contact us at files@mathworks.com