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 /40/CH2/EX2.4d/Exa_2_4d.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 '40/CH2/EX2.4d/Exa_2_4d.sce')
-rwxr-xr-x | 40/CH2/EX2.4d/Exa_2_4d.sce | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/40/CH2/EX2.4d/Exa_2_4d.sce b/40/CH2/EX2.4d/Exa_2_4d.sce new file mode 100755 index 000000000..43283683c --- /dev/null +++ b/40/CH2/EX2.4d/Exa_2_4d.sce @@ -0,0 +1,8 @@ +//example 2.4d,pg.no.17
+x=[2 4 6 8]
+xm=3;//denote 3rd sample has pad
+x1=[1 3 5 7]
+x2=interpln([x1;x],1:6)
+xm=xm+1*(xm-1);//shift in pad due to interpolation
+xm=xm-1//shift in pad due to delay
+y=[x2(2:2:xm-2),x2(xm:2:length(x2))]//decimation
\ No newline at end of file |