How to prevent overwrite the graph in looping?
Ältere Kommentare anzeigen
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 Kommentare
KSSV
am 8 Mär. 2018
Instead of plotting in conditionals....you collect the data in conditionals...and plot at once after the loops.
Alex Phang
am 8 Mär. 2018
KSSV
am 13 Mär. 2018
Yes very much....
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Sources and Sinks finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!