summaryrefslogtreecommitdiff
path: root/40/CH2/EX2.4c
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /40/CH2/EX2.4c
downloadScilab-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.4c')
-rwxr-xr-x40/CH2/EX2.4c/Exa_2_4c.sce9
1 files changed, 9 insertions, 0 deletions
diff --git a/40/CH2/EX2.4c/Exa_2_4c.sce b/40/CH2/EX2.4c/Exa_2_4c.sce
new file mode 100755
index 000000000..ecda14aa3
--- /dev/null
+++ b/40/CH2/EX2.4c/Exa_2_4c.sce
@@ -0,0 +1,9 @@
+//example 2.4c,pg.no.17
+x=[3 4 5 6];
+xm=3;
+xm=xm+1*(xm-1);//shift in pad due to interpolation
+xm=xm-2//normal shifting
+x1=[x(1:1/3:length(x))]//step interpolated
+xm=3;
+xm=xm+2*(xm-1)//shift in pad due to interpolation
+y=[x1(1:2:xm-2),x1(xm:2:length(x1))]//decimation \ No newline at end of file