How do I click a point on a GUI and have it open another GUI?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Karishma-Devi Siewdass
el 30 de Nov. de 2017
Comentada: Karishma-Devi Siewdass
el 5 de Dic. de 2017
I have a GUI that reads in the plot_google_map.m. I have a point plotted off the coast of a country. What is supposed to happen is when I click that point another GUI is supposed to open. Not asking for code but help to reason it out. Please let me know if any more information is needed. Thank you in advance.
(Apologies for typos)
0 comentarios
Respuestas (1)
Mukul Rao
el 4 de Dic. de 2017
Hi, the CurrentPoint property of the axes and its ButtonDownFcn callback would be a good place to start. If the distance of the "CurrentPoint" from the point of interest on the map is below a certain tolerance, you can basically call another function that generates a new GUI if one doesn't exist.
Ver también
Categorías
Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!