Main Content

ndims

Return number of dimensions in DataMatrix object

Syntax

N = ndims(DMObj)

Input Arguments

DMObjDataMatrix object, such as created by DataMatrix (object constructor).

Output Arguments

NPositive integer representing the number of dimensions in DMObj. The number of dimensions in a DataMatrix object is always 2.

Description

N = ndims(DMObj) returns the number of dimensions in DMObj, a DataMatrix object. The number of dimensions in a DataMatrix object is always 2.

Version History

Introduced in R2008b

See Also