summaryrefslogtreecommitdiff
path: root/716/CH2/EX2.5/Solved_Ex2_5.sce
diff options
context:
space:
mode:
Diffstat (limited to '716/CH2/EX2.5/Solved_Ex2_5.sce')
-rwxr-xr-x716/CH2/EX2.5/Solved_Ex2_5.sce20
1 files changed, 20 insertions, 0 deletions
diff --git a/716/CH2/EX2.5/Solved_Ex2_5.sce b/716/CH2/EX2.5/Solved_Ex2_5.sce
new file mode 100755
index 000000000..aeab01280
--- /dev/null
+++ b/716/CH2/EX2.5/Solved_Ex2_5.sce
@@ -0,0 +1,20 @@
+//sketch x(-t) and x(2-t)
+//for x(t)=t for 0<=t<=3 and x(t)=0 for t>3
+clc;
+clear;
+clf;
+t=-5:0.01:5;
+x=t.*(t>=0&t<=3)+0.*(t>3);
+subplot(131)
+plot(t,x);//displays original function x(t)
+xtitle('the original signal x(t)=t for 0<=t<=3','time t','signal x(t)');
+
+t=-1*t;
+subplot(132)
+plot(t,x);//displays x(-t)
+xtitle('the signal x(-t)','time t','signal x(-t)');
+
+t=2+t;
+subplot(133)
+plot(t,x);//displays x(2-t)
+xtitle('the signal x(2-t)','time t','signal x(2-t)'); \ No newline at end of file