Retrieving data for a calculated plot
이전 댓글 표시
Hello
I created the differential plot attached with Matlab. Is it possible to retrieve the derivative data it used or do I need to calculate it myself?
G
댓글 수: 5
Monica Roberts
2022년 5월 17일
Does this help?
f = openfig("1wavevec.fig"); % Figure handle
a = f.Children; % Axes handle
lines = a.Children; % Handles of all the lines
xdata = [];
ydata = [];
for i = 2:numel(lines) % The first line is a different length than the rest
xdata = [xdata;lines(i).XData];
ydata = [ydata;lines(i).YData];
end
Gavin Seddon
2022년 5월 17일
Gavin Seddon
2022년 7월 30일
Gavin Seddon
2022년 7월 31일
Star Strider
2022년 7월 31일
I looked at the data in this file.
One way to recover the 5003 Line objects is:
filename = '1wavevec.fig';
F = openfig(filename);
Ax = gca;
Lines = findobj(gca, 'Type','Line')
for k=1:numel(Lines)
xv{k,:} = Lines(k).XData;
yv{k,:} = Lines(k).YData;
end
However the rest of it makes essentially no sense. It appears to be entirely made up of collinear quiver arrows and nothing else. I have no idea how to recover any information other than the quiver arrows that comprise each line.
It will likely be necessary to calculate whatever data were used to create this plot and use that, or re-plot the existing data without using the quiver function. I doubt that anything meaningful can be recovered from the file as it exists here.
.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 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!