Accelerating the pace of engineering and science
Number of dimensions of categorical array
n = ndims(A)
n = ndims(A) returns the number of dimensions
in the categorical array A. The number of dimensions
in an array is always greater than or equal to 2. Trailing singleton
dimensions are ignored. Put simply, ndims(A) is length(size(A)).
Join the conversation