Main Content

mxIsLogicalScalar (C)

Determine whether scalar array is of type mxLogical

C Syntax

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

Arguments

array_ptr

Pointer to an mxArray

Returns

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

Description

Use mxIsLogicalScalar to determine whether MATLAB® treats the scalar data in the mxArray as logical or numerical.

Version History

Introduced before R2006a