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