12.07.2015 Views

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

xlabel, ylabel, zlabelPurpose2xlabel, ylabel, zlabelLabel the x-, y-, and z-axisSyntaxxlabel('string')xlabel(fname)xlabel(...,'PropertyName',PropertyValue,...)h = xlabel(...)ylabel(...)h = ylabel(...)zlabel(...)h = zlabel(...)DescriptionEach axes graphics object can have one label for the x-, y-, and z-axis. The labelappears beneath its respective axis in a two-dimensional plot and to the side orbeneath the axis in a three-dimensional plot.xlabel('string') labels the x-axis of the current axes.xlabel(fname) evaluates the function fname, which must return a string, thendisplays the string beside the x-axis.xlabel(...,'PropertName',PropertyValue,...) specifies property nameand property value pairs for the text graphics object created by xlabel.h = xlabel(...), h = ylabel(...), and h = zlabel(...) return the handleto the text object used as the label.ylabel(...) and zlabel(...) label the y-axis and z-axis, respectively, of thecurrent axes.RemarksSee AlsoRe-issuing an xlabel, ylabel, or zlabel command causes the new label toreplace the old label.For three-dimensional graphics, <strong>MATLAB</strong> puts the label in the front or side,so that it is never hidden by the plot.text, title2-589

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!