| MATLAB Application Program Interface | Search  Help Desk |
| mxIsEmpty | Examples See Also |
C Syntax
#include "matrix.h" bool mxIsEmpty(const mxArray *array_ptr);
Arguments
array_ptrReturns
true if the mxArray is empty; otherwise, returns false.
Description
UsemxIsEmpty to determine if an mxArray is empty. An mxArray is empty if the size of any of its dimensions is 0.
Attempts to access empty mxArray cause undesirable behavior. To avoid accessing empty arrays, test them by calling mxIsEmpty.
Note that mxIsEmpty is not the opposite of mxIsFull.
Example
See mxisfinite.c in the mx subdirectory of the examples directory.
See Also
mxIsClass