% deleter.m deletes plots if they are markers figure(2); if hflag(1) == 'r' c = get(gca,'Children'); for i = 1:length(c) if get(c(i),'Type') == 'line' if length(get(c(i),'Marker')) ~= 4 delete(c(i)) end end end end