using mouse to select a point on an axes in GUIDE

  • Follow


This would seem simple, but I am stumped so far. Have taught myself to make a simple GUI in GUIDE that displays 3D MRI image slices, with sliders and pushbuttons and edit boxes to choose which slice to display. I can run calculations on the image slices and plto ina separate window. But I cannot figure out how to simply click on a point in the displayed image and extract the coordinates of where I clicked. I cannot find any example of this in my searching the documentation or the Matlab web site. 

I did try to use impoint, which is more complicated than what I need. It worked OK in a toy GUI before drawing anything on the axes, but in my real GUI I first draw an image, and then I cannot get impoint to work over that image.

Some kindly point me in the right direction or suggest a few lines of code. Thanks much.
0
Reply Jeff 10/16/2010 11:17:03 PM

I rescind this post. I learned how to search the newsgroup and found several useful entries under "buttondownfcn imagesc"
0
Reply Jeff 10/18/2010 9:01:08 PM


1 Replies
555 Views

(page loaded in 0.904 seconds)

Similiar Articles:













7/24/2012 5:17:29 AM


Reply: