How to prevent overwrite the graph in looping?
Show older comments
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 Comments
KSSV
on 8 Mar 2018
Instead of plotting in conditionals....you collect the data in conditionals...and plot at once after the loops.
Alex Phang
on 8 Mar 2018
KSSV
on 13 Mar 2018
Yes very much....
Accepted Answer
More Answers (0)
Categories
Find more on Sources and Sinks in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!