ndims

Syntax

Description

N = ndims(A) returns
the number of dimensions in the array A. The number
of dimensions is always greater than or equal to 2.
The function ignores trailing singleton dimensions, for which size(A,dim)
= 1.

This website uses cookies to improve your user experience, personalize content and ads, and analyze website traffic. By continuing to use this website, you consent to our use of cookies. Please see our Privacy Policy to learn more about cookies and how to change your settings.