function y=filt(x,h)

n=length(x);
m=length(h);
x=[zeros(m-1,1);reshape(x,n,1);zeros(m-1,1)];
h=h(m:-1:1);
y=zeros(n+m-1,1);
for k=1:n+m-1
    y(k)=dot(x(k:k+m-1),h);
end
