LTPDA_ALLGRID Set all the grids to 'state' %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DESCRIPTION: LTPDA_ALLGRID Set all the grids to 'state' CALL: ltpda_allgrid('state') VERSION: $Id: ltpda_allgrid.html,v 1.14 2008/03/31 10:27:43 hewitson Exp $ HISTORY: 17-11-2002 M Hewitson Creation. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0001 function ltpda_allgrid(state) 0002 % LTPDA_ALLGRID Set all the grids to 'state' 0003 % 0004 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0005 % 0006 % DESCRIPTION: LTPDA_ALLGRID Set all the grids to 'state' 0007 % 0008 % CALL: ltpda_allgrid('state') 0009 % 0010 % VERSION: $Id: ltpda_allgrid.html,v 1.14 2008/03/31 10:27:43 hewitson Exp $ 0011 % 0012 % HISTORY: 17-11-2002 M Hewitson 0013 % Creation. 0014 % 0015 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0016 0017 if (strcmp(state,'on') || strcmp(state,'off')) 0018 0019 c = get(gcf, 'children'); 0020 0021 for k=1:length(c) 0022 0023 t = get(c(k), 'Tag'); 0024 if t=='' 0025 set(c(k), 'XGrid', state); 0026 set(c(k), 'YGrid', state); 0027 end 0028 0029 end 0030 else 0031 error('state must be on or off'); 0032 end 0033 0034 % 0035 % END