length
Length of an object.
Syntax
l = length(M)
Input argument
M - a variable
Output argument
l - the length of the largest array dimension in M.
Description
For matrix or N-dimensional array, length returns the number of elements along the largest dimension. For empty object, length returns 0. For scalar, length returns 1. For a vector, length returns the number of elements.
Example
See also
History
Version | Description |
---|---|
1.0.0 | initial version |
Author
Allan CORNET
Last updated