x=input('enter x:');

h=input('enter h:');

l_x=length(x);

l_h=length(h);

X=[x,zeros(1,l_x)];

H=[h,zeros(1,l_h)];

for k=1:l_x+l_h-1

y(k)=0;

for n=1:a

if (k-n+1)>0

y(k)=y(k)+x(n)*h(k-n+1);

end

end

Alumni Liaison

Basic linear algebra uncovers and clarifies very important geometry and algebra.

Dr. Paul Garrett