


UNDOPLOTS - undo plots Usage:undoplots(prevplot)


0001 function undoplots(prevplot) 0002 %UNDOPLOTS - undo plots 0003 % 0004 % Usage:undoplots(prevplot) 0005 0006 %erase all previous plots 0007 g=get(gca,'children'); 0008 L=length(g); 0009 for i=1:L-prevplot 0010 delete(g(i)); 0011 end 0012 end