eigvalreal

Real eigenvalues of a matrix.

Syntax

eigvalreal(mat_expr)

Argument

mat_expr
A valid square matrix expression.

Example

Templex Expression Result
{eigvalreal({{0,1},{-2,-3}})} -1, -2

Comments

The result is a vector containing the real component of the eigenvalues of mat_expr. If mat_expr is N by N, the result has N elements.