how do i retrieve the values from a plotted graph?
1 回表示 (過去 30 日間)
古いコメントを表示
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?
0 件のコメント
回答 (1 件)
Doug Hull
2013 年 3 月 25 日
編集済み: Doug Hull
2013 年 3 月 25 日
>> 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.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Line Plots についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!