%Carolina Verdial

%Problem 2
A=[2 -1 0;-1 2 -1;0 -1 1];
B=inv(A);

Result
>> B

B=

1.0000 1.0000 1.0000
1.0000 2.0000 2.0000
1.0000 2.0000 3.0000

%Creates matrix A
%Calculates inverse of A

Sign up to vote on this title
UsefulNot useful

Master Your Semester with Scribd & The New York Times

Special offer for students: Only $4.99/month.

Master Your Semester with a Special Offer from Scribd & The New York Times

Cancel anytime.