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

    function hh = mbctitle(ax,string,varargin)
%MBCTITLE Graph title.
%   MBCTITLE(ax,'text') adds text at the top of the current axis.
%
%   MBCTITLE(ax,'text','Property1',PropertyValue1,'Property2',PropertyValue2,...)
%   sets the values of the specified properties of the title.
%
%   H = MBCTITLE(...) returns the handle to the text object used as the title.

%  Copyright 2000-2010 The MathWorks, Inc. and Ford Global Technologies, Inc.




h = get(ax,'Title');

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

if nargout > 0
   hh = h;
end