Main Content

mxGetNumberOfDimensions (Fortran)

Number of dimensions in mxArray

Fortran Syntax

#include "fintrf.h"
mwSize mxGetNumberOfDimensions(pm)
mwPointer pm

Description

mxGetNumberOfDimensions returns the number of dimensions in the specified mxArray. The returned value is always 2 or greater.

To determine how many elements are in each dimension, call mxGetDimensions.

Input Arguments

expand all

Pointer to an mxArray array, specified as mwPointer.

Version History

Introduced before R2006a