FUNCTION REFERENCE

yticks

Set or query y axis tick values.

Set or query y axis tick values.

Syntax

yticks(ticks)

Syntax

yticks('auto')

Syntax

yticks('manual')

Syntax

t = yticks

Syntax

yticks(ax, ...)

Sets the y-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); yticks([1 3 5]); t = yticks   % [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.