graph
显示 更早的评论
hi
how can i select a point from a graph? i have a graph and i want to select a point from it and do some works with its coordinate(x & y). i want to select on graph and recieve x & y coordinate
thank u
1 个评论
Kavish Chaurasia
2011-6-29
there is a tool to locate the coordinate on a particular graph, which could be seen as an icon on the graph window.
采纳的回答
更多回答(1 个)
Gerd
2011-6-29
0 个投票
When you run your m-file and nothing is selected on the graph the position variable is empty. When your m-file is finished the position is stored and you can display the result in the command window. I would suggest to use the callback function so everytime you click on your figure you receive the position values.
类别
在 帮助中心 和 File Exchange 中查找有关 Creating, Deleting, and Querying Graphics Objects 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!