xlabel

Purpose

x-axis labels.

Synopsis

xlabel('text')

Description

xlabel('text') adds text to the current two-dimensional plot beneath the x-axis, or to the side or bottom of a current three-dimensional plot.

Reissuing an xlabel command causes the new text to replace the old text.

Algorithm

For three-dimensional graphics, MATLAB puts the label in the front or side, so that it is never hidden by the plot itself.

See Also

text, title, ylabel, zlabel

(c) Copyright 1994 by The MathWorks, Inc.