home *** CD-ROM | disk | FTP | other *** search
- function title(string)
- %TITLE Titles for 2-D and 3-D plots.
- % TITLE('text') adds text at the top of the current axis.
- %
- % See also XLABEL, YLABEL, ZLABEL, TEXT.
-
- % Copyright (c) 1984-93 by The MathWorks, Inc.
-
- h = get(gca,'title');
- if isempty(h)
- h = text('horiz','center');
- set(gca,'title',h);
- end
- set(h,'string',string);
-
-