Determine whether array represents data as signed 16-bit integers
#include "matrix.h" bool mxIsInt16(const mxArray *pm);
#include "fintrf.h" integer*4 mxIsInt16(pm) mwPointer pm
pm
Pointer to an mxArray
Logical 1
(true
) if the array stores its data as
signed 16-bit integers, and logical 0
(false
)
otherwise.
Use mxIsInt16
to determine whether the specified array represents
its real and imaginary data as 16-bit signed integers.
In C, calling mxIsInt16
is equivalent to calling:
mxGetClassID(pm) == mxINT16_CLASS
In Fortran, calling mxIsInt16
is equivalent to calling:
mxGetClassName(pm) == 'int16'
mxIsClass
,
mxGetClassID
,
mxIsInt8
,
mxIsInt32
,
mxIsInt64
,
mxIsUint8
,
mxIsUint16
,
mxIsUint32
,
mxIsUint64