summaryrefslogtreecommitdiff
path: root/692/CH2/EX2.26/P2_26.sce
blob: 5e434a00e2d4a55adfdadbddda75663af4791372 (plain)
1
2
3
4
5
6
7
8
//EXAMPLE 2.26,convolution of x & h
x=[-2 0 1 -1 3];
disp(x,'x = ');
h=[1 2 0 -1];
disp(h,'h = ');
n=0:7;
y=convol(x,h);
disp(y,'The convolution of the two inputs is :')