Navigation

Operators and Keywords

Function List:

C++ API

Built-in Function: length (a)

Return the length of the object a.

The length is 0 for empty objects, 1 for scalars, and the number of elements for vectors. For matrix objects, the length is the number of rows or columns, whichever is greater (this odd definition is used for compatibility with MATLAB).

See also: numel, size.

Package: octave