How can I obtain the coordinates(x,y) from my plot?
4 ビュー (過去 30 日間)
古いコメントを表示
I have a written a program which utimately plots a graph for me. I wish to obtain the x and y coordinates of desired points on my graph. How can I do this?
0 件のコメント
回答 (1 件)
Honglei Chen
2012 年 6 月 28 日
編集済み: Honglei Chen
2012 年 6 月 28 日
You can try to get the handle of the plotted object and then get XData and YData out of it. Here is an example
h = plot(1:10)
get(h,'XData')
get(h,'YData')
In your case, you may need to go down the hg tree to find the object you need.
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!