function grafy
subplot(2,3,1)
plot([4,5],[1,7],'r')
grid
xlabel('x')
ylabel('y')
hold on
plot(4,1,'sg')
plot(5,7,'vk')
hold off
subplot(2,3,2)
t=linspace(0,2*pi,1000);
x=1+5.*cos(t);
y=2+2.*sin(t);
plot(x,y)
xlabel('osa x')
ylabel('osa y')
axis([-5,7,0,4])
subplot(2,3,3)
compass(2,3)
velikost=(2.^2+3.^2).^(1/2);
disp(velikost)
subplot(2,3,4)
c=[3+4i,-1+2i,-4-3i,2-i];
plot(c,'o')
grid
xlabel('Re')
ylabel('Im')
subplot(2,3,5)
compass(c)
subplot(2,3,6)
t=linspace(0,30*pi,10000);
r=exp(t./4);
polar(t,r,'r')
end

