export x and y data from a matlab plot into a matrix
16 ビュー (過去 30 日間)
古いコメントを表示
how do I extract the x y data from a matlab figure? Thank you.
0 件のコメント
回答 (3 件)
Honglei Chen
2012 年 2 月 16 日
編集済み: John Kelly
2014 年 5 月 27 日
You need to access XData and YData property, for example:
h = plot(1:10);
get(h,'XData')
get(h,'YData')
Here is a handy tool to find out the handle graphics properties
Image Analyst
2012 年 2 月 16 日
If it just recently popped up, and you can run some code to get to it before focus switches to some other figure, then you can use gca or gcf for the handle.
0 件のコメント
Patrick Kalita
2012 年 2 月 16 日
Also, take a look at the answers to these similar questions:
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Annotations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!