MATLAB ndims function
Provides number of array dimensions.
ndims(A)
A |
object of which to determine the number of dimensions |
Returns the number of dimensions in the array A
.
The number of dimensions is always greater than or equal to 2.
Initial implementation returned length
.
P. Roebuck proebuck@mdanderson.org
ndims(2:9) # 2 ndims(magic(4)) # 2 ndims(array(1:8, c(2,2,2))) # 3
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.