LTPDA_ALLXAXIS Set all the xaxis ranges on the current figure. usage: ltpda_allxaxis(x1, x2) M Hewitson 17-11-02 $Id: ltpda_allxaxis.html,v 1.1 2007/06/08 14:15:10 hewitson Exp $
0001 function ltpda_allxaxis(x1, x2) 0002 0003 % LTPDA_ALLXAXIS Set all the xaxis ranges on the current 0004 % figure. 0005 % 0006 % usage: ltpda_allxaxis(x1, x2) 0007 % 0008 % M Hewitson 17-11-02 0009 % 0010 % $Id: ltpda_allxaxis.html,v 1.1 2007/06/08 14:15:10 hewitson Exp $ 0011 % 0012 0013 0014 0015 0016 c = get(gcf, 'children'); 0017 0018 for k=1:length(c) 0019 0020 t = get(c(k), 'Tag'); 0021 if isempty(t) 0022 set(c(k), 'XLim', [x1 x2]); 0023 end 0024 0025 end 0026 0027 % 0028 % END