Using impixelinfo command
Ältere Kommentare anzeigen
Hi,
I used guide command to create a user interface for my matlab's code. The interface contains 2 axes: axes1 - 3D graph, axes2 - an image. I'm trying to obtain the coordinates of the graph in axes1, when the mouse is on top of it. I was told that I should use the impixelinfo command, but unfortunatly, i didn't managed how to use it.
I will be grateful for a help, Regards
Akzeptierte Antwort
Weitere Antworten (1)
Andreas Goser
am 27 Feb. 2011
0 Stimmen
It is alwas difficult to guess -"i didn't managed how to use it." needs guessing. My guess is that IMPIXELINFO does not find your GUI automtically as the handle is hidden. I suggest using impixelinfo(h).
4 Kommentare
a
am 27 Feb. 2011
Andreas Goser
am 1 Mär. 2011
It is important to know the error message. Error messages are there for a reason.
a
am 3 Mär. 2011
Andreas Goser
am 3 Mär. 2011
I'd say you need to "convert" the graph into an image.
> I was told that it work on graphs too.
Well then ask the person who told you ;-)
Kategorien
Mehr zu 2-D and 3-D Plots finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!