www.gusucode.com > mbcguitools 工具箱 matlab 源码程序 > mbcguitools/mbcxlabel.m
function hh = mbcxlabel(ax,string,varargin) %MBCXLABEL X-axis label. % MBCXLABEL(ax,'text') adds text beside the X-axis on the specified axis. % % MBCXLABEL(ax,'text','Property1',PropertyValue1,'Property2',PropertyValue2,...) % sets the values of the specified properties of the xlabel. % % H = MBCXLABEL(...) returns the handle to the text object used as the label. % Copyright 2000-2010 The MathWorks, Inc. and Ford Global Technologies, Inc. h = get(ax,'XLabel'); set(h, 'String', string, varargin{:}); if nargout > 0 hh = h; end