www.gusucode.com > mbcguitools 工具箱 matlab 源码程序 > mbcguitools/mbcylabel.m

    function hh = mbcylabel(ax,string,varargin)
%MBCYLABEL Y-axis label.
%   MBCYLABEL(ax,'text') adds text beside the Y-axis on the specified axis.
%
%   MBCYLABEL(ax,'text','Property1',PropertyValue1,'Property2',PropertyValue2,...)
%   sets the values of the specified properties of the ylabel.
%
%   H = MBCYLABEL(...) 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,'YLabel');

set(h, 'String', string, varargin{:});

if nargout > 0
   hh = h;
end