schur
Schur decomposition.
Syntax
Section titled “Syntax”T = schur(A)[U, T] = schur(A)T = schur(A, 'real')T = schur(A, 'complex')Description
Section titled “Description”Decomposes A into an orthogonal/unitary U and (quasi-)triangular T such that A = U*T*U'. By default, real A produces a real quasi-triangular T (with 2×2 diagonal blocks for complex eigenvalue pairs). Pass 'complex' to force a true upper-triangular complex Schur form.
Examples
Section titled “Examples”[U, T] = schur(magic(4));norm(U*T*U' - magic(4)) % near-zero