Main Content

mxIsNumeric (Fortran)

Determine whether mxArray is numeric

Fortran Syntax

#include "fintrf.h"
integer*4 mxIsNumeric(pm)
mwPointer pm


Call mxIsNumeric to determine whether the specified array contains numeric data. If the array has a storage type that represents numeric data, then mxIsNumeric returns 1. Call mxGetClassID to determine the storage type. These class IDs represent storage types for arrays that can contain numeric data:



  • mxINT8_CLASS


  • mxINT16_CLASS

  • mxUINT16_CLASS

  • mxINT32_CLASS

  • mxUINT32_CLASS

  • mxINT64_CLASS

  • mxUINT64_CLASS

Otherwise, mxIsNumeric returns 0.

Input Arguments

expand all

Pointer to an mxArray array, specified as mwPointer.


See these examples in matlabroot/extern/examples/eng_mat:

Version History

Introduced before R2006a

See Also