powered by
Number of dimensions
ndims(x)
A vector, matrix or array.
A count of the number of dimensions