FUNCTION REFERENCE

length

Length of the largest dimension.

Length of the largest dimension.

Syntax

length(A)

Returns the larger of rows and columns, or 0 for an empty array.

Example

length([1 2 3; 4 5 6])   % 3

Differences from MATLAB: none known.

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