export x and y data from a matlab plot into a matrix
显示 更早的评论
how do I extract the x y data from a matlab figure? Thank you.
回答(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
0 个投票
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.
Patrick Kalita
2012-2-16
0 个投票
Also, take a look at the answers to these similar questions:
类别
在 帮助中心 和 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!