| C Math Library Reference | ![]() |
Convert an array to a Boolean value by reducing the rank of the array to a scalar
C Prototype
bool mlfTobool(mxArray *t);
C Syntax
#include "matlab.h
mxArray *A; /* Input argument(s) */
/* equivalent to: if(A != 0) */
if(mlfTobool(mlfNe(A,mlfScalar(0))))
{
/* test succeeded, do something */
}
See Also
Calling Conventions
| mlfTic, mlfToc, mlfVToc | mlfToeplitz | ![]() |