.. highlightlang:: us .. _iscomplex: iscomplex ========= .. index:: iscomplex .. us.tag iscomplex ENGLISH :ref:`iscomplex` checks if its argument is a complex scalar or complex matrix. .. function:: bool = iscomplex(m) .. us.return **Return Value** *bool* is TRUE (1), if the argument is a complex scalar or complex matrix and FALSE (0), if the argument is of another type. .. us.params **Parameters** .. uparam:: m *m* is a scalar, matrix or function. .. us.example **Example** :: a = 1 + 3i iscomplex(a) 1.0000 iscomplex(sin) 0.0000 iscomplex(1.12) 0.0000 .. seealso:: :ref:`overview-mathematic`, :ref:`type`, :ref:`isreal`, :ref:`isstring` :sub:`id-332019`