function grafy
subplot(2,1,1)
plot([6,3],[1,7],'r')
grid
xlabel('x')
ylabel('y')
title('Usecka')
hold on
plot(6,1,'go')
plot(3,7,'ks')
hold off
axis([1,8,-1,9])

subplot(2,1,2)
t=linspace(0,2*pi,1000);
x=1+5.*cos(t);
y=2+2.*sin(t);
plot(x,y)
xlabel('x')
ylabel('y')
title('Elipsa')
grid
axis([-5,7,-1,5])


