FUNCTION REFERENCE

xlim

Set x axis limits.

Set x axis limits.

Syntax

xlim([a b])

Syntax

xlim('auto')

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

Example

xlim([0 5])   % x from 0 to 5

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.