summaryrefslogtreecommitdiff
path: root/162/CH7/EX7.2/example72.sce
blob: fbfbcf00e0e67884436d1e7cb3c7683e5d697c48 (plain)
1
2
3
4
5
6
7
8
9
10
//Example 7.2
//Convolution of two periodic signals
clc;
x1=[1,2,3,4];
x2=[3,1,1,3];
X1=fft(x1,-1);
X2=fft(x2,-1);
X3=X1.*X2;
x3=fft(X3,1);
disp(x3,'Convolution of the two given periodic signals is');