From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 842/CH1/EX1.15/Example1_15.sce | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 842/CH1/EX1.15/Example1_15.sce (limited to '842/CH1/EX1.15') diff --git a/842/CH1/EX1.15/Example1_15.sce b/842/CH1/EX1.15/Example1_15.sce new file mode 100755 index 000000000..3fe295692 --- /dev/null +++ b/842/CH1/EX1.15/Example1_15.sce @@ -0,0 +1,21 @@ +//clear// +//Example 1.15:Classification of a System:Time Invariance Property +//Page 51 +//To check whether the given system is a Time variant (or) Time In-variant +// The given discrete signal is y[n] = n.x[n] +clear; +clc; +no = 2; //Assume the amount of time shift =2 +L = 10; //Length of given signal +for n = 1:L + x(n) = n; + y(n) = n*x(n); +end +//First shift the input signal only +Input_shift = x(L-no); +Output_shift = y(L-no); +if(Input_shift == Output_shift) + disp('The given discrete system is a Time In-variant system'); +else + disp('The given discrete system is a Time Variant system'); +end -- cgit