FUNCTION REFERENCE

ylim

Set y axis limits.

Set y axis limits.

Syntax

ylim([a b])

Syntax

ylim('auto')

Sets the visible y range, or returns it to automatic.

Example

ylim([-1 1])   % y from -1 to 1

Differences from MATLAB: Numeric two-element limits or 'auto' only.

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