Documentation

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.

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?