Documentation Center

  • Trial Software
  • Product Updates

ndims (DataMatrix)

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.

See Also

Was this topic helpful?