How can I put a display that shows changing variables in a plot?
38 ビュー (過去 30 日間)
古いコメントを表示
I wanted to know if I could put a display that shows me a number that changes in a plot.
回答 (2 件)
Aquatris
2019 年 12 月 5 日
Assuming you plot in a for loop and the changing variable is x, below code will update the title of the plot to be equal to x
for i = 1:length(x)
plot(t,x(i))
title(x(i))
pause(0.001)
end
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Formatting and Annotation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!