ishermitian

Computes if matrix is hermitian or skew-hermitian.

Syntax

  • res = ishermitian(x)

  • res = ishermitian(x, 'skew')

  • res = ishermitian(x, 'nonskew')

Input argument

  • x - a numeric value: scalar or matrix (double or single, integers, logical).

Output argument

  • res - a logical.

Description

ishermitian(x) computes if matrix is hermitian or skew-hermitian.

A matrix is skew-hermitian if the complex conjugate transpose of the matrix is equal to the negative of the original matrix.

Example

ishermitian([1 0 1i; 0 1 0; -1i 0 1])

See also

issymmetric.

History

Version
Description

1.0.0

initial version

Author

Allan CORNET

Last updated