Skip to Main Content Skip to Search
Product Documentation

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

DataMatrix

How To

  


Free Computational Biology Interactive Kit

See how to analyze, visualize, and model biological data and systems using MathWorks products.

Get free kit

Trials Available

Try the latest computational biology products.

Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS