%NDIMS   Number of dimensions.
%   N = NDIMS(X) returns the number of dimensions in the array X.
%   The number of dimensions in an array is always greater than
%   or equal to 2.  Trailing singleton dimensions are ignored.
%   Put simply, it is LENGTH(SIZE(X)).
%
%   For Java arrays and Java arrays of arrays, NDIMS always returns 2.
%
%   See also SIZE.

%   Copyright 1984-2005 The MathWorks, Inc.
%   Built-in function.

