hw19 - sprintf('2b/4b/5b')...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
% % Derek Rampal % HW 19 % % clear sprintf('I stored the eigenvectors as columns in the evector matrix') sprintf('I stored the eigenvalues in a diagonal matrix evalue') sprintf('1a') A = [2,-1;-1,2]; [evectora,evaluea] = eig(A) sprintf('1b') A = [0,1;1,1]; [evectorb,evalueb] = eig(A) sprintf('1c') A = [0,1/2;1/2,0]; [evectorc,evaluec] = eig(A) sprintf('1d') A = [1,1;-2,-2]; [evectord,evalued] = eig(A) sprintf('1e') A = [2,1,0;1,2,0;0,0,3]; [evectore,evaluee] = eig(A) sprintf('1f') A = [-1,2,0;0,3,4;0,0,7]; [evectorf,evaluef] = eig(A) sprintf('1g') A = [2,1,1;2,3,2;1,1,2]; [evectorg,evalueg] = eig(A) sprintf('1h') A = [3,2,-1;1,-2,3;2,0,4]; [evectorh,evalueh] = eig(A) [ sprintf('2a/4a/5a') [convergence,spectral_radius,norm] = spectralradius([2,-1;-1,2])
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: sprintf('2b/4b/5b') [convergence,spectral_radius,norm] = spectralradius([0,1;1,1]) sprintf('2c/4c/5c') [convergence,spectral_radius,norm] = spectralradius([0,1/2;1/2,0]) sprintf('2d/4d/5d') [convergence,spectral_radius,norm] = spectralradius([1,1;-2,-2]) sprintf('2e/4e/5e') [convergence,spectral_radius,norm] = spectralradius([2,1,0;1,2,0;0,0,3]) sprintf('2f/4f/5f') [convergence,spectral_radius,norm] = spectralradius([-1,2,0;0,3,4;0,0,7]) sprintf('2g/4g/5g') [convergence,spectral_radius,norm] = spectralradius([2,1,1;2,3,2;1,1,2]) sprintf('2h/4h/5h') [convergence,spectral_radius,norm] = spectralradius([3,2,-1;1,-2,3;2,0,4])...
View Full Document

This note was uploaded on 09/19/2009 for the course MATH numerical taught by Professor Ford during the Spring '09 term at FAU.

Ask a homework question - tutors are online