using cla in a for loop
Mostra commenti meno recenti
I am trying to use the cla function to periodically clear my plot durring a for loop. The first set of data plot fine but once i call the cla function nothing else will plot for the remainder of the for loop. what can i do?
for i = 1:4:L
a = rem(i,1201);
if a == 0
cla
end
addpoints(h(1),U(2,i),U(3,i),U(4,i));
addpoints(h(2),W(2,i),W(3,i),W(4,i));
addpoints(h(3),R(2,i),R(3,i),R(4,i));
drawnow
end
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Image Preview and Device Configuration in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!