External Interfaces Reference Previous page   Next Page
mxIsLogical

Determine if mxArray is of class mxLogical

C Syntax

Arguments

array_ptr
   Pointer to an mxArray.

Returns

Logical 1 (true) if array_ptr points to a logical mxArray, and logical 0 (false) otherwise.

Description

Use mxIsLogical to determine whether MATLAB treats the data in the mxArray as Boolean (logical). If an mxArray is logical, then MATLAB treats all zeros as meaning false and all nonzero values as meaning true. For additional information on the use of logical variables in MATLAB, type help logical at the MATLAB prompt.

Examples

See mxislogical.c in the mx subdirectory of the examples directory.

See Also

mxIsClass, mxSetLogical (Obsolete)


Previous page  mxIsInt64 mxIsLogicalScalar Next page

© 1994-2005 The MathWorks, Inc.