Demo entry 6643355

2(5)

   

Submitted by anonymous on Sep 27, 2017 at 18:17
Language: Matlab. Code size: 214 Bytes.

n0=[-4:2];
x0=[1,-2,4,6,-5,8,10];
for k=1:5
[x1,n1]=sigshift(x0,n0,k);
[x2,n2]=sigmult(n0,n0,x1,n1);
if(k==1)
    x=x2;n=n2;
else
[x,n]=sigadd(x,n,x2,n2);
end
end
subplot(1,1,1);stem(n,x);title('2.2.5');

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).