%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% function setPlotDisplay( flag) sjcm - tired of typing this out. quick function to set whether plots will be visible or not. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0001 function setPlotDisplay( flag) 0002 0003 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0004 % 0005 % function setPlotDisplay( flag) 0006 % 0007 % sjcm - tired of typing this out. quick function to set whether plots 0008 % will be visible or not. 0009 % 0010 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0011 0012 close all 0013 switch(flag) 0014 case 0 0015 figure('visible', 'off'); 0016 0017 case 1 0018 figure('visible', 'on'); 0019 end 0020 0021 return;