Main Content

mxIsEmpty (C)

Determine whether mxArray is empty

C Syntax

#include "matrix.h"
bool mxIsEmpty(const mxArray *pm);

Description

mxIsEmpty returns logical 1 (true) if the mxArray is empty. Otherwise, it returns logical 0 (false). An mxArray is empty if the size of any of its dimensions is 0.

Input Arguments

expand all

Pointer to an mxArray array, specified as const mxArray*.

Examples

See these examples in matlabroot/extern/examples/mx:

Version History

Introduced before R2006a

See Also