xlabel
Label x-axis.
πŸ“Syntax
xlabel(text)
xlabel(ax, text)
xlabel(..., propertyName, propertyValue)
go = xlabel(...)
πŸ“₯Input Arguments
Parameter Description
text Text to display: character vector, string scalar, string array or cell array.
ax a scalar graphics object value: parent container, specified as a axes.
propertyName a scalar string or row vector character.
propertyValue a value.
πŸ“€Output Arguments
Parameter Description
go a graphics object: text type.
πŸ“„Description

xlabel('text') labels the x-axis of the current axes.

πŸ’‘Examples
f = figure();
x = linspace(-1, 1);
y = sin(2*pi*x);
plot(x, y);
xlabel('X axis Label - Unicode γƒ‰γƒ©γ‚΄γƒ³γƒœγƒΌγƒ«X(γ‚Όγƒƒγƒˆ)')
Example illustration
πŸ”—See Also
texttitle
πŸ•”Version History
Version Description
1.0.0 initial version
Edit this page on GitHub