LTPDA_ALLYSCALE Set all the Y scales on the current figure. usage: allyscale(scale) scale = 'lin' or 'log'; M Hewitson 02-05-04 $Id: ltpda_allyscale.html,v 1.1 2007/06/08 14:15:10 hewitson Exp $
0001 function ltpda_allyscale(scale) 0002 0003 % LTPDA_ALLYSCALE Set all the Y scales on the current 0004 % figure. 0005 % 0006 % usage: allyscale(scale) 0007 % 0008 % scale = 'lin' or 'log'; 0009 % 0010 % M Hewitson 02-05-04 0011 % 0012 % $Id: ltpda_allyscale.html,v 1.1 2007/06/08 14:15:10 hewitson Exp $ 0013 % 0014 0015 0016 0017 0018 c = get(gcf, 'children'); 0019 0020 for k=1:length(c) 0021 0022 t = get(c(k), 'Tag'); 0023 if isempty(t) 0024 set(c(k), 'YScale', scale); 0025 end 0026 0027 end 0028 0029 % 0030 % END