LTPDA_ALLXLABEL Set all the x-axis labels on the current figure. usage: ltpda_allxlabel(label) M Hewitson 17-11-02 $Id: ltpda_allxlabel.html,v 1.1 2007/06/08 14:15:10 hewitson Exp $
0001 function ltpda_allxlabel(label) 0002 0003 % LTPDA_ALLXLABEL Set all the x-axis labels on the current 0004 % figure. 0005 % 0006 % usage: ltpda_allxlabel(label) 0007 % 0008 % M Hewitson 17-11-02 0009 % 0010 % $Id: ltpda_allxlabel.html,v 1.1 2007/06/08 14:15:10 hewitson Exp $ 0011 % 0012 0013 0014 c = get(gcf, 'children'); 0015 0016 for k=1:length(c) 0017 0018 t = get(c(k), 'Tag'); 0019 if t=='' 0020 h = get(c(k), 'xlabel'); 0021 set(h, 'string', label); 0022 end 0023 0024 end 0025 0026 % 0027 % END