How to prevent overwrite the graph in looping?
이전 댓글 표시
I want to have three eyediagrams and one graph combine three while loop together. The codes is something like the below:
N=2
while (N<=4)
. . . . . .
eyediagram(........)
if(N==2)
figure;
semilogy(........);
hold on;
semilogy(........);
elseif (N==3)
semilogy(........);
hold on;
semilogy(........);
else
semilogy(........);
hold on;
semilogy(........);
. . . . . . .
N=N+1;
end
댓글 수: 3
KSSV
2018년 3월 8일
Instead of plotting in conditionals....you collect the data in conditionals...and plot at once after the loops.
Alex Phang
2018년 3월 8일
KSSV
2018년 3월 13일
Yes very much....
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Line Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!