Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

function yn=konv(x, h)

l1=length(x);
l2=length(h);
lo=l1+l2;

yn=zeros(1,lo);

for i=1:l1
for j=1:l2
yn(i+j-1)=yn(i+j-1)+x(i)*h(j);
end
end
end

You might also like