where are my data?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Paul Rogers
am 14 Jan. 2020
Kommentiert: Star Strider
am 14 Jan. 2020
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 Kommentare
Akzeptierte Antwort
Star Strider
am 14 Jan. 2020
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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!