% Linear Algebra: Theory and Applications % Ward Cheney & David Kincaid % JBPub.com (c) 2008 % File: exp8117.m % Example 8.1.17 Matematical Software A = [5, 2-i,1+i*sqrt(5); 2+i,4,3;1-i*sqrt(5),3,-1] [P,D] = eig(A) P'*A*P