summaryrefslogtreecommitdiff
path: root/40/CH2/EX2.4a
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.4a
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.4a')
-rwxr-xr-x40/CH2/EX2.4a/Exa_2_4a.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/40/CH2/EX2.4a/Exa_2_4a.sce b/40/CH2/EX2.4a/Exa_2_4a.sce
new file mode 100755
index 000000000..36af8b99c
--- /dev/null
+++ b/40/CH2/EX2.4a/Exa_2_4a.sce
@@ -0,0 +1,12 @@
+//example 2.4a pg.no.17
+x=[1 2 5 -1];
+xm=2;//denotes 2nd sample has pad.
+y=[x(1:2:xm-2),x(xm:2:length(x))]//decimation
+h=[x(1:1/3:length(x))]//step interpolated
+g=h;
+for i=2:3
+ g(i:3:length(g))=0;
+end
+//zero interpolated
+x1=1:3:3*length(x);
+s=interpln([x1;x],1:10)//linear interpolated \ No newline at end of file