mxGetLogicals (C) - Get pointer to logical array data
C Syntax
#include "matrix.h"
mxLogical *mxGetLogicals(const mxArray *array_ptr);
Arguments
- array_ptr
Pointer to an mxArray
Returns
Pointer to the first logical element in the mxArray.
The result is unspecified if the mxArray is not
a logical array.
Description
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.
See Also
mxCreateLogicalArray, mxCreateLogicalMatrix, mxCreateLogicalScalar, mxIsLogical, mxIsLogicalScalar, mxIsLogicalScalarTrue
 | mxGetJc (C and Fortran) | | mxGetM (C and Fortran) |  |
Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
Get the Interactive Kit