ndims
Number of dimension of an array.
n=ndims(a)
Inputs
a Any array.
Outputs
n The number of dimensions of a , i.e., the number of elements in size(a) .