length
L = length(X)returns the length of the largest array dimension in X- For vectors, the length is simply the number of elements
- For arrays with more dimensions, the length is
max(size(X)) - 一般情况下 empty array 长度为 0, 但定义多维 empty array 可能有正长度
L = length(X) returns the length of the largest array dimension in X
max(size(X))