Main Content

mxIsInt16 (C)

Determine whether mxArray represents data as signed 16-bit integers

C Syntax

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

Description

mxIsInt16 returns logical 1 (true) if the mxArray stores its real and imaginary data as 16-bit signed integers. Otherwise, it returns logical 0 (false).

In C, calling mxIsInt16 is equivalent to calling:

mxGetClassID(pm) == mxINT16_CLASS

Input Arguments

expand all

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

Introduced before R2006a