how do i retrieve the values from a plotted graph?

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?

답변 (1개)

Doug Hull
Doug Hull 2013년 3월 25일
편집: Doug Hull 2013년 3월 25일

0 개 추천

>> 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.

카테고리

도움말 센터File Exchange에서 Simulink Functions에 대해 자세히 알아보기

제품

질문:

2013년 3월 25일

Community Treasure Hunt

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

Start Hunting!

Translated by