summaryrefslogtreecommitdiff
path: root/3812/CH2/EX2.15/2_15.sce
blob: bc7142b4ec6aab73bd535edb67567ae1e84727a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//Example 2_15
//Find the convolution of two sequences
clc
n=-8:1:8;
for i=1:length(n)
x(i)=exp(-n(i)^2);
h(i)=3.*n(i)^2;
end
y=convol(x,h);
figure
plot2d3(n,h);
title('Impulse responce');
figure
plot2d3(n,x);
title('Input signal');
figure
n1=-16:1:16
plot2d3(n1,y);
title('Output signal');