FUNCTION REFERENCE

xticks

Set or query x axis tick values.

Set or query x axis tick values.

Syntax

xticks(ticks)

Syntax

xticks('auto')

Syntax

xticks('manual')

Syntax

t = xticks

Syntax

xticks(ax, ...)

Sets the x-axis tick positions (strictly increasing finite vector), restores automatic ticks with 'auto', or freezes current ticks with 'manual'. With no arguments, returns the current tick values.

Example

plot(1:5); xticks([1 3 5]); t = xticks   % [1 3 5]

Differences from MATLAB: Categorical or datetime tick values are not supported yet.

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