1 2 3 4 5 6
disp('To find the eigenvalues of the matrix A') disp('A=') a=[6 -2 0;-2 9 0;5 8 3] disp(a) disp('Eigenvalues of A are:') disp(spec(a))