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.

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.

Introduced before R2006a

Was this topic helpful?