diary ('MatlabOutput.txt') diary on diary off M=[1,2,3] M' M=[1,i] M' M=[1,2;2,1] eig(M) [v,e]=eig(M) N=[1,3;-2,2]; M*N N*M