Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

mxIsEmpty (C and Fortran)

Determine whether array is empty

C Syntax

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

Fortran Syntax

#include "fintrf.h"
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.

Examples

See the following examples in matlabroot/extern/examples/mx.

See Also

mxIsClass

Introduced before R2006a

Was this topic helpful?