Documentation

This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.

mxIsInt32 (C and Fortran)

Determine whether array represents data as signed 32-bit integers

C Syntax

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

Fortran Syntax

integer*4 mxIsInt32(pm)
mwPointer pm

Arguments

pm

Pointer to an mxArray

Returns

Logical 1 (true) if the array stores its data as signed 32-bit integers, and logical 0 (false) otherwise.

Description

Use mxIsInt32 to determine whether the specified array represents its real and imaginary data as 32-bit signed integers.

In C, calling mxIsInt32 is equivalent to calling:

mxGetClassID(pm) == mxINT32_CLASS

In Fortran, calling mxIsInt32 is equivalent to calling:

mxGetClassName(pm) == 'int32'

Introduced before R2006a

Was this topic helpful?