draw lines on points in GUI

3 次查看(过去 30 天)
Hello
I'm working on a GUI, where I inserted a "pushbutton" that draws points on a "axes". then insert a second, "pushbutton" to insert lines with "getline" function. The lines are positioned on the points. I wonder how can I when inserting lines the coordinates [x, y] match. for example, when you click to draw the line the selected location will be exactly the position of the points.
I need to store the coordinates of the points when I'm drawing the lines
Thank you very much in advance

回答(1 个)

Walter Roberson
Walter Roberson 2016-1-19

类别

Help CenterFile Exchange 中查找有关 Specifying Target for Graphics Output 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by