| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Statistics Toolbox |
| Contents | Index |
| Learn more about Statistics Toolbox |
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)).
![]() | ncx2stat | NDimensions property (gmdistribution) | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |