Home > m > plottools > ltpda_allgrid.m

ltpda_allgrid

PURPOSE ^

LTPDA_ALLGRID Set all the grids to 'state'

SYNOPSIS ^

function ltpda_allgrid(state)

DESCRIPTION ^

 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.m,v 1.4 2007/07/16 12:52:20 ingo Exp $

 HISTORY:     17-11-2002 M Hewitson
                 Creation.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

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.m,v 1.4 2007/07/16 12:52:20 ingo 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

Generated on Mon 03-Sep-2007 12:12:34 by m2html © 2003