clear the ploted nodes only
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
clear all
N=20;
area=100;
hold on;
for i=1:N
hplot(i)=plot(X(i),Y(i));
htext(i)=text(X(i),Y(i),num2str(i),'fontsize',10);
hold on;
end
I wish to clear the plotted node after pause(.1) only plotted nodes clear and not clear the N,XX,YY,BS,area and plotted bs after pause(.1)
0 Commenti
Risposta accettata
Michael Haderlein
il 22 Apr 2015
delete(hplot)
4 Commenti
Michael Haderlein
il 23 Apr 2015
If you want to delete everything plotted in the axes, use
delete(get(gca,'children'))
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Annotations in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!