# mxIsNumeric, mxIsString

## Purpose

Inquire if Matrix contains numeric or string data.

## C Synopsis

    int mxIsNumeric(pm)
      Matrix *pm;
    int mxIsString(pm)
      Matrix *pm;

## Fortran Synopsis

    integer*4 function mxIsNumeric(pm)
    integer*4 function mxIsString(pm)
    integer*4 pm

## Arguments

`pm`
  pointer to Matrix structure

## Description

These routines let you inquire the state of the DisplayMode flag of a Matrix to determine whether or not the Matrix contains a string. The DisplayMode flag tells MATLAB whether to display the Matrix in numeric form or to interpret the elements as ASCII values and to display the Matrix as a string, if the semicolon is omitted from a MATLAB statement.

`mxIsNumeric` returns 1 if the Matrix contains numeric data and 0 otherwise.

`mxIsString` returns 1 if the Matrix contains a string and 0 otherwise.

There are no set versions of these functions. Use `mxGetString` and `mxCreateString` to extract and insert strings into Matrix structures.

`$MATLAB/extern`

`MATLAB:[EXTERN]`

`$MATLAB`

`MATLAB:`

    $MATLAB/extern/include

      /extern/lib

      /extern/src
    MATLAB:[EXTERN.INCLUDE]

      [EXTERN.LIB]

      [EXTERN.SRC]

`/include`

`[.INCLUDE]`

`engine.h`
`mat.h`
`mex.h`
`matrix.h`

`mat.h`, `mex.h`,

`engine.h`

``

`matrix.h`

`matrix.h`

`/lib`

`[.LIB]`

, beneath machine-specific subdirectories,

`libmat.a`
`LIBMAT.OLB`
`libmex.a`
`LIBMEX.OLB`
`fmex35.o`
`FMEX35.OBJ`
`mexdb.o`
`MEXDB.OBJ`
`-debug`

`/src`

`[.SRC]`

  The reference pages list the Fortran example filenames using an extension of `.f`. On VMS systems, Fortran source files use a filename extension of `.FOR`.

(c) Copyright 1994 by The MathWorks, Inc.