plot all the values of a for loop

3 Ansichten (letzte 30 Tage)
satish kumar
satish kumar am 27 Mai 2020
Kommentiert: satish kumar am 27 Mai 2020
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.

Akzeptierte Antwort

William Alberg
William Alberg am 27 Mai 2020
As far as i can see, you need to put the plot command inside the loop. I have attached a modified version
  3 Kommentare
William Alberg
William Alberg am 27 Mai 2020
You can use the "hold on" functionallity, i have attached the code.
satish kumar
satish kumar am 27 Mai 2020
Thanks a lot man, it helps.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Graphics Performance finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by