summaryrefslogtreecommitdiff
path: root/3812/CH1/EX1.27.a/1_27_a.sce
diff options
context:
space:
mode:
Diffstat (limited to '3812/CH1/EX1.27.a/1_27_a.sce')
-rw-r--r--3812/CH1/EX1.27.a/1_27_a.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/3812/CH1/EX1.27.a/1_27_a.sce b/3812/CH1/EX1.27.a/1_27_a.sce
new file mode 100644
index 000000000..b7ef09bdc
--- /dev/null
+++ b/3812/CH1/EX1.27.a/1_27_a.sce
@@ -0,0 +1,17 @@
+//Example 1.27<a>
+//Determine whether the following system is time invariant or not
+clc;
+clear all;
+T =20;
+s =2;
+for n=1:T
+x(n)=n;
+y(n)=n*x(n);
+end
+IP=x(T-s);
+OP=y(T-s);
+if IP == OP then
+disp('The given system is time invariant');
+else
+disp('The given system is time variant');
+end