data from figures without data
2 次查看(过去 30 天)
显示 更早的评论
Hello family,
how do I extract experimental values or data from a figure using matlab
1 个评论
Adam Danz
2019-9-3
This is a common question with lots of existing answers in this forum.
Check out this link for advice on how to get help in this forum
采纳的回答
Subhadeep Koley
2019-9-6
The following code might help.
% Open your figure
fig = openfig('example.fig');
% Find Xdata and YData objects
dataObjs = findobj(fig,'-property','YData');
y1 = dataObjs(1).YData;
dataObjs = findobj(fig,'-property','XData');
x1 = dataObjs(1).XData;
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Interactive Control and Callbacks 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!