Products & Services Solutions Academia Support User Community Company

Learn more about MATLAB   

mxIsInt8 (C and Fortran) - Determine whether mxArray represents data as signed 8-bit integers

C Syntax

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

Fortran Syntax

integer*4 mxIsInt8(pm)
mwPointer pm

Arguments

pm

Pointer to an mxArray

Returns

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

Description

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

In C, calling mxIsInt8 is equivalent to calling:

mxGetClassID(pm) == mxINT8_CLASS

In Fortran, calling mxIsInt8 is equivalent to calling:

mxGetClassName(pm) .eq. 'int8'

See Also

mxIsClass, mxGetClassID, mxIsInt16, mxIsInt32, mxIsInt64, mxIsUint8, mxIsUint16, mxIsUint32, mxIsUint64

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2010- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS