Products & Services Solutions Academia Support User Community Company

Learn more about MATLAB   

mxIsCell (C and Fortran) - Determine whether input is cell mxArray

C Syntax

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

Fortran Syntax

integer*4 mxIsCell(pm)
mwPointer pm

Arguments

pm

Pointer to an mxArray

Returns

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

Description

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'

See Also

mxIsClass

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS