Main Content

mxIsChar (C)

Determine whether input is mxChar array

C Syntax

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

Description

mxIsChar returns logical 1 (true) if pm points to an mxChar array. Otherwise, it returns logical 0 (false).

In C, calling mxIsChar is equivalent to calling:

mxGetClassID(pm) == mxCHAR_CLASS

Input Arguments

expand all

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

Examples

To open an example, type:

edit([fullfile(matlabroot,"extern","examples","refbook","filename")]);

where filename is:

To open an example, type:

edit([fullfile(matlabroot,"extern","examples","mx","filename")]);

where filename is:

Version History

Introduced before R2006a