SOLVE USING MATLAB
PUT IN MATRIX FORM
» R=[1,0,0,0;  %FIRST ROW
1,1, -1, 0;  %SECOND  ROW
0,1,3,-2;  %THIRD ROW
0,-1,-1,2] %FOURTH ROW
R =
     1     0     0     0
     1     1    -1     0
     0     1     3    -2
     0    -1    -1     2
DEFINE THE MATRIX
DEFINE THE RIGHT HAND SIDE VECTOR
» V=[4;0;8;12]
V =
     4
     0
     8
    -12
Since we divided by
1k the RHS is mA and
all the coefficients
are numbers
SOLVE AND GET THE ANSWER
» I=R\V
I =
     4
    -6
    -2
   -10
The answers are in mA
>> is the MATLAB prompt. What
follows is the command entered