diff options
Diffstat (limited to '40/CH2/EX2.4d')
-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 |