External Interfaces Reference Previous page   Next Page
mxIsLogicalScalar

Determine if scalar mxArray is of class mxLogical

C Syntax

Arguments

array_ptr
   Pointer to an mxArray.

Returns

Logical 1 (true) if the mxArray is of class mxLogical and has 1-by-1 dimensions, and logical 0 (false) otherwise.

Description

Use mxIsLogicalScalar to determine whether MATLAB treats the scalar data in the mxArray as logical or numerical. For additional information on the use of logical variables in MATLAB, type help logical at the MATLAB prompt.

mxIsLogicalScalar(pa) is equivalent to

See Also

mxIsLogicalScalarTrue, mxIsLogical, mxGetLogicals, mxGetScalar


Previous page  mxIsLogical mxIsLogicalScalarTrue Next page

© 1994-2005 The MathWorks, Inc.