length
L = length(X)returns the length of the largest array dimension of X- For vectors, the length is simply the number of elements
- For higher-dimensional arrays, the length is
max(size(X)) - An empty array typically has length 0, but a multi-dimensional empty array can have a positive length