clear the ploted nodes only
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Michael Haderlein
2015-4-22
delete(hplot)
4 个评论
Michael Haderlein
2015-4-23
If you want to delete everything plotted in the axes, use
delete(get(gca,'children'))
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Annotations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!