Main Content

mxIsCell (C)

Determine whether mxArray is cell array

C Syntax

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

Description

mxIsCell returns logical 1 (true) if the specified array is a cell array. Otherwise, it returns logical 0 (false).

In C, calling mxIsCell is equivalent to calling:

mxGetClassID(pm) == mxCELL_CLASS

Note

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.

Input Arguments

expand all

Pointer to an mxArray array, specified as const mxArray*.

Introduced before R2006a