summaryrefslogtreecommitdiff
path: root/3838/CH2/EX2.12.a/EX2_12_a.sce
diff options
context:
space:
mode:
Diffstat (limited to '3838/CH2/EX2.12.a/EX2_12_a.sce')
-rw-r--r--3838/CH2/EX2.12.a/EX2_12_a.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/3838/CH2/EX2.12.a/EX2_12_a.sce b/3838/CH2/EX2.12.a/EX2_12_a.sce
new file mode 100644
index 000000000..f9748b976
--- /dev/null
+++ b/3838/CH2/EX2.12.a/EX2_12_a.sce
@@ -0,0 +1,16 @@
+//Example 2 2.12.a
+clc ;
+t0 =1;
+T =10;
+for t =1: T
+x ( t ) =t;
+y ( t ) =(2)*exp(x(t)) ;
+end
+inputshift = 2*exp(x (T - t0))
+outputshift = y (T - t0 )
+if( inputshift == outputshift )
+disp ( 'THE GIVEN SYSTEM I S TIME INVARIANT ' );
+else
+disp ( 'THE GIVEN SYSTEM I S TIME VARIANT ' ) ;
+end
+