Code covered by the BSD License  

Highlights from
Data Cursor on Mouse Move

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

Data Cursor on Mouse Move

by

 

15 Sep 2011 (Updated )

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 (R2010a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
19 Jun 2012 Xiangqi

It doesn't work on windows opened by function figure().

Updates
15 Sep 2011

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

11 Jun 2012

- Update with overobj3 subfunction which returns handle of object that the pointer is over.
- Third argument (imagePlot) is optional, in this case overobj3 subfunction returns the handle of image that the pointer is over.

Contact us