Documentation

This is machine translation

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

mxIsLogicalScalarTrue (C)

Determine whether scalar array of type mxLogical is true

C Syntax

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

Arguments

array_ptr

Pointer to an mxArray

Returns

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

Description

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

Introduced before R2006a

Was this topic helpful?