Main Content


(Not Recommended) Number of dimensions of dataset array

The dataset data type is not recommended. To work with heterogeneous data, use the MATLAB® table data type instead. See MATLAB table documentation for more information.


n = ndims(A)


n = ndims(A) returns the number of dimensions in the dataset A. The number of dimensions in an array is always 2.

See Also