length
Length along the longest array dimension
length(A)
A
a
a = ones(3,4,7,1,9); length(a)
ans = 9.000