This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

mxIsLogicalScalarTrue (C)

Determine whether scalar array of type mxLogical is true

C Syntax

#include "matrix.h"
bool mxIsLogicalScalarTrue(const mxArray *array_ptr);



Pointer to an mxArray


Logical 1 (true) if the value of the mxArray logical, scalar element is true. Otherwise, it returns logical 0 (false).


Use mxIsLogicalScalarTrue to determine whether the value of a scalar mxArray is true or false.

Introduced before R2006a

Was this topic helpful?