Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: datacursormode
Replies: 2   Last Post: Jan 3, 2013 8:42 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Nima Nikvand

Posts: 11
Registered: 12/30/12
Re: datacursormode
Posted: Jan 3, 2013 8:29 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

griffey <jimmy.griffey@msa.hinet.net> wrote in message <ef35e2d.-1@webx.raydaftYaTP>...
> I have designed a GUI. I put some images in axes. But, I want to know
> some coordinates on the images. I don't know how to use
> datacursormode to output the data cursor. The codes are listed below:
>
> axes(handles.axes2);
> I1=imread('1.bmp');
> imshow(I1);title('Test Image');
> datacursormode(handles.axes2);
> dcm_obj = datacursormode(handles.axes2);
>
> I don't know how to set the "figure_handle" inside "datacursormode".
> Now I use "handles.axes2" as "figure_handle", but it doesn't work.
> Any idea?


Hello,

use [handle,figure] = gcbo. Then you can call datacursormode on figure (which is a figure handle)



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.