function komplexni_soustava
U0=(100/sqrt(2))*(cos(2)+j*sin(2));
compass(U0)
Z1=10+20j;Z2=20+30j;Z3=30-10j;
Z4=20-5j;Z5=10+30j;
A=[-1,1,1,0,0;...
    0,-1,0,1,1;...
    Z1,0,Z3,0,0;...
    0,Z2,-Z3,Z4,0;...
    0,0,0,-Z4,Z5];
b=[0;0;U0;0;0];
x=A\b;
disp('proudy')
disp(x)
figure
compass(x)
end

