MATLAB Answers

0

data from figures without data

Asked by DARLINGTON ETAJE on 3 Sep 2019
Latest activity Answered by Subhadeep Koley on 6 Sep 2019
Hello family,
how do I extract experimental values or data from a figure using matlab

  1 Comment

Adam Danz
on 3 Sep 2019
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

Sign in to comment.

1 Answer

Answer by Subhadeep Koley on 6 Sep 2019
 Accepted Answer

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 Comments

Sign in to comment.