% /home/dimarzio/Documents/working/12229/ali/matrixexample.txt
% Sat Sep  9 18:21:42 2017
R1=100;R2=200;R3=150;R4=250;Vs=5;IS=0.02;
M=[1,-1,-1,0;0,0,1,-1;-R1,-R2,0,0;0,R2,-R3,-R4]
y=[0,Is,-Vs,0]'
x=inv(M)*y % Solve y=M*x for x; x = inv(M)*M*x
x=M\y % Backslash divide 
