I found this answer to be very useful. The only missing part is how we can show the values of "coordinateSelected" in the interface. for instance:
app.Label.Text=[num2str(coordinateSelected(1,1)),num2str(coordinateSelected(1,1))]
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!