Skip to content

length

Length along the longest array dimension

length(A)

  • It returns a number representing the length of A along the longest dimension.

Example 1: The longest dimension has length 9.

a=ones(3,4,7,1,9);
length(a)
ans =
9.000