x = -1:0.001:1;
maxSt = 18;

for i = 0:maxSt,
    T = ChebRek(i,x);
    plot(x,T,'LineWidth',2);
    str=sprintf('Chebysevuv polynom, stupen polynomu: %d' ,i);
	title(str);	
    
    waitforbuttonpress;

end
