| MATLAB Application Program Interface | Search  Help Desk |
| mxIsChar | Examples See Also |
C Syntax
#include "matrix.h" bool mxIsChar(const mxArray *array_ptr);
Arguments
array_ptrmxArray.
Returns
true if array_ptr points to an array having the class mxCHAR_CLASS; otherwise, returns false.
Description
UsemxIsChar to determine if array_ptr points to string mxArray.
Calling mxIsChar is equivalent to calling
mxGetClassID(array_ptr) == mxCHAR_CLASS
Examples
Seephonebook.c and revord.c in the refbook subdirectory of the examples directory.
For additional examples, see mxcreatecharmatrixfromstr.c, mxislogical.c, and mxmalloc.c in the mx subdirectory of the examples directory.
See Also
mxIsClass, mxGetClassID