| MATLAB Application Program Interface | Search  Help Desk |
| mxIsStruct | Examples See Also |
C Syntax
#include "matrix.h" bool mxIsStruct(const mxArray *array_ptr);
Arguments
array_ptrmxArray.
Returns
true if array_ptr points to a structure array; otherwise, returns false.
Description
UsemxIsStruct to determine if array_ptr points to a structure mxArray. Many routines (for example, mxGetFieldName and mxSetField) require a structure mxArray as an argument.
Example
Seephonebook.c in the refbook subdirectory of the examples directory.
See Also
mxCreateStructArray, mxCreateStructMatrix, mxGetNumberOfFields,mxGetField, mxSetField