MATLAB: How to erase a line

remove

Hai,
I have drawn a few lines. At the later part of my program I need to delete (remove/erase) those lines, which do not satisfy the required conditions. So, is it possible to remove or erase the lines which have already been drawn, in matlab. Is there any function that supports this. Looking for your reply.
BSD

Best Answer

f=figure(1);hold on;
c1=plot(1:10);
c2=plot(10:-1:1);
delete(c1);