Main Content

mxIsLogical (Fortran)

Determine whether mxArray is of type mxLogical

Fortran Syntax

#include "fintrf.h"
integer*4 mxIsLogical(pm)
mwPointer pm

Description

mxIsLogical returns 1 if the mxArray logical. Otherwise, it returns 0. If an mxArray is logical, then MATLAB® treats all zeros as meaning false and all nonzero values as meaning true.

Input Arguments

expand all

Pointer to an mxArray array, specified as mwPointer.

Version History

Introduced before R2006a

Go to top of page