close all;
typ='db5';
[h_,g_,h,g]=wfilters(typ);

k=1;
p1=k*h(1);
p2=2*k*h(1)+k*h(2);
p3=4*k*h(1)+2*k*h(2)+k*h(3);
p4=6*k*h(1)+4*k*h(2)+2*k*h(3)+k*h(4);
p5=8*k*h(1)+6*k*h(2)+4*k*h(3)+2*k*h(4)+k*h(5);
p6=10*k*h(1)+8*k*h(2)+6*k*h(3)+4*k*h(4)+2*k*h(5);
p7=12*k*h(1)+10*k*h(2)+8*k*h(3)+6*k*h(4)+4*k*h(5);
p8=14*k*h(1)+12*k*h(2)+10*k*h(3)+8*k*h(4)+6*k*h(5);
p9=16*k*h(1)+14*k*h(2)+12*k*h(3)+10*k*h(4)+8*k*h(5);
p10=16*k*h(2)+14*k*h(3)+12*k*h(4)+10*k*h(5);
p11=16*k*h(3)+14*k*h(4)+12*k*h(5);
p12=16*k*h(4)+14*k*h(5);
p13=16*k*h(5);


pole=[p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13];

figure
n=1:13;
stem(n,pole)
x=1:15
priamka=(2*x).^2;

a=g.*priamka(1:11);
b=sum(a)



