MATLAB Application Program Interface Reference Help Desk

mxIsChar

Purpose

True if a string mxArray

C Syntax

Arguments

array_ptr

Pointer to an mxArray.

Returns

true if array_ptr points to an array having the class mxCHAR_CLASS; otherwise, returns false.

Description

Use mxIsChar to determine if array_ptr points to string mxArray.

Calling mxIsChar is equivalent to calling

Example

Consider a MEX-file that expects its first input argument to be a string mxArray. If it is not a string mxArray, the MEX-file issues an error message.

For an additional example, see mxIsChar.c in the mx subdirectory of the examples directory.

See Also

mxIsClass, mxGetClassID



[ Previous | Help Desk | Next ]