function grafy
subplot(2,1,1)
%plot([6,3],[-2,7],'r',6,-2,'go',3,7,'ks')
plot([6,3],[-2,7],'r','LineWidth',3) % usecka
grid
xlabel('x')
ylabel('y')
title('Usecka')
hold on
plot(6,-2,'go','MarkerSize',20,'LineWidth',3) % bod
plot(3,7,'ks','MarkerSize',20,'LineWidth',3) %bod
hold off
axis([2,7,-3,8]) % rozsah os

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')
axis([-5,7,-1,5])



