load data from doted plot

3 Ansichten (letzte 30 Tage)
slowlearner
slowlearner am 3 Jun. 2020
Kommentiert: Star Strider am 13 Jun. 2020
hey I'm trying to import the data from a doted plot i made from a script to have the values show as a list instead but don't really know where to look.
I've tried
h = findobj(gca, 'Type','dot')
doesn't work only gives an empty table when the figure is open
h = importdata('case1 SOC noV2G.fig')
gives nothing of value that i can use
the plot looks like the attached file it has a seperate dot at each point of time
don't know where to go from here all help would be appriciated!

Akzeptierte Antwort

Star Strider
Star Strider am 3 Jun. 2020
Try this:
F = openfig('case1 SOC noV2G.fig');
h = findobj(F, 'Type','line');
for k = 1:numel(h)
x{k} = h(k).XData;
y{k} = h(k).YData;
end
Then go do something else for a few minutes, since this is going to take a while!
  2 Kommentare
slowlearner
slowlearner am 13 Jun. 2020
thank you it's official you the king!
Star Strider
Star Strider am 13 Jun. 2020
As always, my pleasure!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Two y-axis finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by