export x and y data from a matlab plot into a matrix
12 次查看(过去 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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Annotations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!