| MATLAB® | ![]() |
#include "matrix.h" bool mxIsStruct(const mxArray *pm);
integer*4 mxIsStruct(pm) mwPointer pm
Pointer to an mxArray
Logical 1 (true) if pm points to a structure mxArray, and logical 0 (false) otherwise.
Use mxIsStruct to determine whether pm points to a structure mxArray. Many routines (for example, mxGetFieldName and mxSetField) require a structure mxArray as an argument.
See phonebook.c in the refbook subdirectory of the examples directory.
mxCreateStructArray, mxCreateStructMatrix, mxGetNumberOfFields, mxGetField, mxSetField
![]() | mxIsSparse (C and Fortran) | mxIsUint16 (C and Fortran) | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |