
clc
clear all

R1 = 470;
R2 = 300;
R3 = 560;
R4 = 100;
R5 = 1000;

v1 = 5;
v2 = 10;

katsayilar = [  R1   R2   0   0   0 ;
                 0  -R2  R3   0  R5 ;
                 0    0 -R3  R4   0 ;
                -1    1   1   1   0 ;
                 0    0  -1  -1   1   ];
             
sagtaraf = [ v1; 0; -v2; 0; 0 ];

cozum = inv(katsayilar) * sagtaraf;
% cozum = katsayilar\sagtaraf;

for k = 1:5
    fprintf('i%d = %f\n', k, cozum(k));
end
