%Zadanie
clear all;

P = inline('x^2'); %Polynom
skladani=10;
[x y h g] = wfilters('db3');
clear x y g;

h_dlzka = length(h);
pole = zeros(h_dlzka + skladani,1);
pole(1:h_dlzka) = h(:);

for i=1:skladani
     do = i + h_dlzka - 1;
     pole(i : do) = pole(i : do) + P(i)*h(:);
     zz=P(i)*h(:)
end

figure;
plot(pole);
title(char(P));
