I am struggling to solve the circuit given in the attachment. I have found the current values in the circuit and I am not sure about it(I do not have the answer sheet). I would like to ask whether it is true or wrong. If wrong, where have I done wrong?
---Edit---:
\$9V-90\Omega I_{1}+90\Omega I_{2}=0\$
\$12V-210\Omega I_{1}-90\Omega I_{3}=0\$
\$9V+120\Omega I_{1}-30\Omega I_{2}=0\$
I tried to convert these equation to matrix as follows:
\$A=\$\begin{bmatrix}90 & -90 & 0\\210 & 0 & 90\\ -120 & 30& 0\end{bmatrix}
\$b=\$\begin{bmatrix}90\\12\\9\end{bmatrix}
And solved the equation in MATLAB by the command x=A\b an got the results:
\$I_{1}=-0,1333\$
\$I_{2}=-0,2333\$
\$I_{3}=0,4444\$
I do not get 0 when I put the values back to the equation nor when I run A*x-b on MATLAB. I am still struggling on where I do wrong. Is the problem on the assignments of the currents or the equation or some numerical errors while solving?
I know that my handwriting is not really clear but I have added my paper which I solved on just in case as attachment with the name "Attachment 2".