MATLAB Answers

data from figures without data

1 view (last 30 days)
Hello family,
how do I extract experimental values or data from a figure using matlab

Accepted Answer

Subhadeep Koley
Subhadeep Koley on 6 Sep 2019
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.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by