plot all the values of a for loop
2 ビュー (過去 30 日間)
古いコメントを表示
Hey guys, i am attaching a code here. In that i need to plot different graphs each time the value of H changes. i was expecting four graphs for H = 400,600,800,1000. i am a bit confused how to execute this task,every time i am getting the graph only for last value of H. Thanks for the help in advance.
0 件のコメント
採用された回答
William Alberg
2020 年 5 月 27 日
As far as i can see, you need to put the plot command inside the loop. I have attached a modified version
3 件のコメント
William Alberg
2020 年 5 月 27 日
You can use the "hold on" functionallity, i have attached the code.
その他の回答 (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!