Tracking mouse position on figure
Mostra commenti meno recenti
I'm looking for some way of turning a JPEG into a MATLAB figure (which I know how to do). And then be able click on the figure and have the x and y values of where I clicked go into the code as variables, so I can take them through some function. Then be able to update the image with a circle at the point where I clicked if the x and y values fulfil a certain criteria from the function.
Risposta accettata
Più risposte (1)
Pourya Alinezhad
il 1 Lug 2013
you can use the function
[x,y] = ginput(4)
Categorie
Scopri di più su Data Exploration in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!