FUNCTION REFERENCE

xlabel

Set the x axis label.

Set the x axis label.

Syntax

xlabel('Time (s)')

Syntax

xlabel('Time (s)', 'Interpreter', 'none', 'Color', [1 0 0])

Text accepts character text and bounded multiline cell or string arrays. Interpreter defaults to tex. Use none for literal text or latex for the supported LaTeX subset. RGB Color is also accepted on axes.

Example

xlabel('Time (s)')   % label below the x axis

Differences from MATLAB: Only a subset of text properties and TeX markup is supported.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.