Asked by John Staine
on 18 May 2018 at 15:44

Thanks

Answer by Jim Riggs
on 18 May 2018 at 19:24

Edited by Jim Riggs
on 18 May 2018 at 19:25

The inverse of a 2x2 is very easy to calculate:

In terms of Matlab code:

detA = A(1,1)*A(2,2)-A(1,2)*A(2,1); Ainv = (1/detA)*[A(2,2),-A(1,2);-A(2,1),A(1,1)];

(note that if detA is zero, the matrix has no inverse)

John Staine
on 18 May 2018 at 19:48

And how would i code it so it uses Gaussian elimination process to find the inverse?

Jim Riggs
on 18 May 2018 at 21:03

Sign in to comment.

Answer by the cyclist
on 18 May 2018 at 15:55

I found this answer by googling.

Sign in to comment.

Opportunities for recent engineering grads.

Apply Today
## 0 Comments

Sign in to comment.