% Ex3conditioning N = 100; A = zeros(N); B = rand(N); A(1,1) = 4; A(1,2) = 1; for i=2:N-1 A(i,i-1) = 1; A(i,i) = 4; A(i,i+1) = 1; end A(N,N) = 4; A(N,N-1) = 1; cond(A) cond(B)