Revision as of 18:00, 1 July 2009 by Yguo (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

Correspondence Chess Grandmaster and Purdue Alumni

Prof. Dan Fleetwood