clear; close all hf = figure; rant = 'Bogus!'; ht = text(0.4,0.5,rant,'FontSize',36,'FontWeight','Bold','Color','r'); state = 'on'; axis off set(gcf,'Color',[1 1 1]); pause(0.5); for i=1:10 switch state case 'on' set(ht,'String',[]); state = 'off'; case 'off' set(ht,'String',rant); state = 'on'; end pause(0.5) end get(ht) %delete(ht) %delete(hf)