Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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.

Introduced in R2008b

Was this topic helpful?