MATLAB GUI - Select a point on a plot and run a function with a push button
Mostrar comentarios más antiguos
What I want to do is to get which point the user has clicked on a given plot, and then, when he clicks on a push button, a function that receives as args the (X,Y) coordinates of that point will run. If there's no point selected on the plot, a warning msg will show, telling the user to select a point.
Is this possible?
2 comentarios
Geoff Hayes
el 5 de Mayo de 2020
Editada: Geoff Hayes
el 5 de Mayo de 2020
Pedro - do you need the push button? Or could the user just click on a point in the axes/plot and have the code execute immediately (with that point)? Also, are you using App Designer, GUIDE or programmatically creating your GUI?
Pedro Augusto de Castro e Castro
el 5 de Mayo de 2020
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Data Exploration en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
