How to prevent overwrite the graph in looping?
Mostrar comentarios más antiguos
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 comentarios
KSSV
el 8 de Mzo. de 2018
Instead of plotting in conditionals....you collect the data in conditionals...and plot at once after the loops.
Alex Phang
el 8 de Mzo. de 2018
KSSV
el 13 de Mzo. de 2018
Yes very much....
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Line Plots en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!