The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

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 <> 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?


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]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.