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

    function hh = mbczlabel(ax,string,varargin)
%MBCZLABEL X-axis label.
%   MBCZLABEL(ax,'text') adds text beside the Z-axis on the specified axis.
%
%   MBCZLABEL(ax,'text','Property1',PropertyValue1,'Property2',PropertyValue2,...)
%   sets the values of the specified properties of the zlabel.
%
%   H = MBCZLABEL(...) 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,'ZLabel');

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

if nargout > 0
   hh = h;
end