summaryrefslogtreecommitdiff
path: root/162/CH1/EX1.4/example14.sce
diff options
context:
space:
mode:
Diffstat (limited to '162/CH1/EX1.4/example14.sce')
-rwxr-xr-x162/CH1/EX1.4/example14.sce23
1 files changed, 23 insertions, 0 deletions
diff --git a/162/CH1/EX1.4/example14.sce b/162/CH1/EX1.4/example14.sce
new file mode 100755
index 000000000..0ec75bb5d
--- /dev/null
+++ b/162/CH1/EX1.4/example14.sce
@@ -0,0 +1,23 @@
+//Example 1.4
+//Time Shifting And Scaling
+clc;
+n=-2:8;
+x=[0,0,0,1,2,3,4,4,0,0,0];
+n1=n+3;
+subplot(2,2,1);
+plot2d3(n1,x);
+xtitle('x[n-3]');
+subplot(2,2,2);
+plot2d3(ceil(n/3),x);
+xtitle('x[3n]');
+subplot(2,2,3);
+n2=-8:2;
+plot2d3(n2,x($:-1:1));
+xtitle('x[-n]');
+subplot(2,2,4)
+n3=n2+3;
+plot2d3(n3,x($:-1:1));
+xtitle('x[-n+3]');
+figure
+plot2d3(n,x);
+xtitle('x[n]'); \ No newline at end of file