Validate Fortran Data - MATLAB & Simulink (original) (raw)

Main Content

Determine type or characteristic of array data

Use these functions to validate input arguments.

Fortran Functions

expand all

Numeric

mxIsDouble Determine whether mxArray represents data as double-precision, floating-point numbers
mxIsSingle Determine whether mxArray represents data as single-precision, floating-point numbers
mxIsComplex Determine whether data is complex
mxIsNumeric Determine whether mxArray is numeric
mxIsInt64 Determine whether mxArray represents data as signed 64-bit integers
mxIsUint64 Determine whether mxArray represents data as unsigned 64-bit integers
mxIsInt32 Determine whether mxArray represents data as signed 32-bit integers
mxIsUint32 Determine whether mxArray represents data as unsigned 32-bit integers
mxIsInt16 Determine whether mxArray represents data as signed 16-bit integers
mxIsUint16 Determine whether mxArray represents data as unsigned 16-bit integers
mxIsInt8 Determine whether mxArray represents data as signed 8-bit integers
mxIsUint8 Determine whether mxArray represents data as unsigned 8-bit integers

Character

mxIsChar Determine whether input is mxChar array

Logical

mxIsLogical Determine whether mxArray is of type mxLogical

Sparse

mxIsSparse Determine whether input is sparse mxArray

Structure

Cell

mxIsCell Determine whether mxArray is cell array

Class

mxIsClass Determine whether mxArray is object of specified class

Constants

mxIsInf Determine whether input is infinite
mxIsFinite Determine whether input is finite
mxIsNaN Determine whether input is NaN (Not-a-Number)

Attributes

Workspace

mxIsFromGlobalWS Determine whether mxArray was copied from MATLAB global workspace