Main Content

mxIsStruct (C)

Determine whether mxArray is structure

C Syntax

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


mxIsStruct returns logical 1 (true) if pm points to a structure mxArray. Otherwise, it returns logical 0 (false). Many routines (for example, mxGetFieldNameByNumber and mxSetField) require a structure mxArray as an argument.

Input Arguments

expand all

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


See these examples in matlabroot/extern/examples/refbook:

Version History

Introduced before R2006a