where are my data?
1 回表示 (過去 30 日間)
古いコメントを表示
I plot a figure by using a function from a package.
Now I'd like to know the x and y values once I plot the curve.
Where are they stored
0 件のコメント
採用された回答
Star Strider
2020 年 1 月 14 日
Try this:
F = openfig('untitled.fig');
ax = gca;
lines = findobj(ax, 'Type','Line');
for k = 1:numel(lines)
x{k,:} = lines(k).XData;
y{k,:} = lines(k).YData;
end
The x- and y-data for each line are in their appropriate cell arrays.
4 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および 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!