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.

mxIsCell (C and Fortran)

Determine whether input is cell array

C Syntax

#include "matrix.h"
bool mxIsCell(const mxArray *pm);

Fortran Syntax

#include "fintrf.h"
integer*4 mxIsCell(pm)
mwPointer pm



Pointer to an mxArray


Logical 1 (true) if pm points to an array having the class mxCELL_CLASS, and logical 0 (false) otherwise.


Use mxIsCell to determine whether the specified array is a cell array.

In C, calling mxIsCell is equivalent to calling:

mxGetClassID(pm) == mxCELL_CLASS

In Fortran, calling mxIsCell is equivalent to calling:

mxGetClassName(pm) .eq. 'cell'


mxIsCell does not answer the question “Is this mxArray a cell of a cell array?” An individual cell of a cell array can be of any type.

See Also


Introduced before R2006a

Was this topic helpful?