function Reseni_ukolu_9
k=input('zadej krok k: ');
fprintf('Zadal jsi krok %g\n',k)
if (k>0.001)
    disp('Spatne zadany krok')
else
    t=[0:k:0.1];
    uR=50.*sqrt(2).*sin(100.*t);
    uS=50.*sqrt(2).*sin(100.*t-2*pi/3);
    uT=50.*sqrt(2).*sin(100.*t-4*pi/3);
    plot(t,uR,'r')
    hold on
    plot(t,uS,'b')
    plot(t,uT,'g')
    hold off
    xlabel('t[s]')
    ylabel('u_R[V], u_S[V], u_T[V]')
    legend('u_R[V]', 'u_S[V]', 'u_T[V]')
end