MATLAB Application Program Interface
  Go to function:
    Search    Help Desk 
mxClearLogical    Examples   See Also

Clear the logical flag

C Syntax

Arguments

array_ptr
  Pointer to an mxArray having a numeric class.

Description

Use mxClearLogical to turn off the mxArray's logical flag. This flag tells MATLAB that the mxArray's data is to be treated as numeric data rather than as Boolean data. If the logical flag is on, then MATLAB treats a 0 value as meaning false and a nonzero value as meaning true.

Call mxSetLogical to turn on the mxArray's logical flag.

Example

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

See Also

mxIsLogical, mxSetLogical



[ Previous | Help Desk | Next ]