mxIsEmpty (C and Fortran) - Determine whether mxArray is empty

C Syntax

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

Fortran Syntax

integer*4 mxIsEmpty(pm)
mwPointer pm

Arguments

pm

Pointer to an mxArray

Returns

Logical 1 (true) if the mxArray is empty, and logical 0 (false) otherwise.

Description

Use mxIsEmpty to determine whether an mxArray contains no data. An mxArray is empty if the size of any of its dimensions is 0.

C Examples

See mxisfinite.c in the mx subdirectory of the examples directory.

See Also

mxIsClass

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS