diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /2294/CH8/EX8.28/EX8_28.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '2294/CH8/EX8.28/EX8_28.sce')
-rwxr-xr-x | 2294/CH8/EX8.28/EX8_28.sce | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/2294/CH8/EX8.28/EX8_28.sce b/2294/CH8/EX8.28/EX8_28.sce new file mode 100755 index 000000000..8821bc42c --- /dev/null +++ b/2294/CH8/EX8.28/EX8_28.sce @@ -0,0 +1,16 @@ + +//Example 8.28
+//Find the linear and circular convolution
+clc;
+clear all;
+x1=[1 2 3 4];
+x2=[2 3 4 1];
+//Linear convolution
+z=convol(x1,x2);
+disp(z,'The linear convolution is:');
+//To obtain circular convolution
+X1=fft(x1,-1);
+X2=fft(x2,-1);
+X3=X1.*X2;
+x3=fft(X3,1);
+disp(x3,'The circular convolution is:');
|