FUNCTION REFERENCE

xtickformat

Set or query x axis tick label format.

Set or query x axis tick label format.

Syntax

xtickformat(fmt)

Syntax

f = xtickformat

Syntax

xtickformat(ax, ...)

Sets TickLabelFormat on the x-axis ruler (datetime, duration, or numeric format string, or 'auto').

Example

plot(datetime(2024,1,1:3), 1:3); xtickformat('dd-MMM'); f = xtickformat   % dd-MMM

Differences from MATLAB: Categorical rulers do not support TickLabelFormat.

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