%-- 20/02/2014 3:59 p.m. --% % Steps done to get eigenvalues and eigenvectors of first exercise problem Set up vectors x1=[2 0 6] x2 = [0 1 0] x3=[6 0 -4] %make the vectors into columns for the matrix m1=[transpose(x1) transpose(x2) transpose(x3)] %Find the eigenvalues eig(m1) %Find both the eigenvalues and eigenvectors [v,e]=eig(m1) prefdir %This tells me where the preferred directory is for the history, %so I can redo my previous commands as a script.