Filter löschen
Filter löschen

how do i retrieve the values from a plotted graph?

1 Ansicht (letzte 30 Tage)
sumanth
sumanth am 25 Mär. 2013
lets say i have a plotted graph which is obtained using an estimator block in simulink. how do i retrieve the values of the plot using only command window?

Antworten (1)

Doug Hull
Doug Hull am 25 Mär. 2013
Bearbeitet: Doug Hull am 25 Mär. 2013
>> h = plot(rand(1,3));
>> get(h,'ydata')
ans =
0.534064127370726 0.089950678770581 0.111705744193203
If you have the handle of a line in MATLAB, you can get the data out of it.
I suspect you can get the information more directly from Simulink though.

Kategorien

Mehr zu Dependency Analysis 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