FUNCTION REFERENCE

linspace

Evenly spaced points.

Evenly spaced points.

Syntax

linspace(a, b)

Syntax

linspace(a, b, n)

Returns a row of n points from a to b. The default n is 100.

Example

linspace(0, 1, 5)   % [0 0.25 0.5 0.75 1]

Differences from MATLAB: Real scalar endpoints only.

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