plot all the values of a for loop

조회 수: 1 (최근 30일)
satish kumar
satish kumar 2020년 5월 27일
댓글: satish kumar 2020년 5월 27일
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.

채택된 답변

William Alberg
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
William Alberg 2020년 5월 27일
You can use the "hold on" functionallity, i have attached the code.
satish kumar
satish kumar 2020년 5월 27일
Thanks a lot man, it helps.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Line Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by