r = 400;
b = 500;
l = 1000;
t1 = 0.3;


t = 0:0.001:2
fi = pi()*t;
ya = r*sin(fi);
yb = -b - l + sqrt(r^2 + b^2 + 2*b*r*sin(fi));

fi1 = pi() * t1;
ya1 = r*sin(fi1);
yb1 = -b - l + sqrt(r^2 + b^2 + 2*b*r*sin(fi1));

subplot(2,1,1);
plot(t,ya)
title('grafak')
legend('legenda')

subplot(2,1,2);
plot(t,yb)
title('title, title')
legend('to druhý')

disp(ya1)
disp(yb1)