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.

mxGetLogicals (C)

Pointer to logical array data

C Syntax

#include "matrix.h"
mxLogical *mxGetLogicals(const mxArray *array_ptr);



Pointer to an mxArray


Pointer to the first logical element in the mxArray. The result is unspecified if the mxArray is not a logical array.


Call mxGetLogicals to access the first logical element in the mxArray that array_ptr points to. Once you have the starting address, you can access any other element in the mxArray.

Introduced before R2006a

Was this topic helpful?