MATLAB Application Program Interface Reference | Help Desk |
mxIsStruct
True if a structuremxArray
#include "matrix.h" bool mxIsStruct(const mxArray *array_ptr);array_ptr
true
if array_ptr
points to a structure array
; otherwise, returns false
.
Use mxIsStruct
to determine if array_ptr
points to a structure mxArray
. Many routines (for example, mxGetFieldName
and mxSetField
) require a structure mxArray
as an argument.
mxCreateStructArray
, mxCreateStructMatrix
, mxGetNumberOfFields
,mxGetFieldName
, mxGetField
, mxSetField