Question

In: Electrical Engineering

Consider the discrete-time LTI system characterized by the following difference equation with input and initial conditions specified

 

Consider the discrete-time LTI system characterized by the following difference equation with input and initial conditions specified: y[n] - 2 y[n-1] – 3 y[n-2] = x[n] , with y[0] = -1 and y[1] = 0, x[n] = (-1/2)n u[n-2]. ? Write a MATLAB program to simulate this difference equation. You may try the commands ‘filter’ or ‘filtic’ or create a loop to compute the values recursively. ? Printout and plot the values of the input signal, x[n] and the output signal, y[n] over the range 1 ? n ? 10. ? Solve this difference equation by hand using the classical method. ? Verify that the values of the output signal, y[n] produced by MATLAB are the same as those calculated by hand for the values of n = 2, 3, 4.

Solutions

Expert Solution

MATLAB PROGRAM :

clc;
clear all;
close all;
num = 1;                    % Numerator of the Transfer Function (From Difference Equation)
den = [1 -2 -3];            % Denominator of Transfer Function (From Difference Equation)
n = 0:10 ;                  % Choose as desired
x = (1/4)*(-1/2).^(n-2);    %u[n] is 1 for n>=2
subplot(121);
stem(n,x);                  % Plotting Input Signal
xlabel(['Discrete in Time n']);
ylabel(['Discrete in Amplitu X[n]']);
title(['Input Signal']);
y = filter(num, den, x, filtic(num, den, [(2/3) (-7/9)], [0 0]));
% [(2/3) (-7/9)] reflects initial conditions y(-1)=2/3 ,y(-2)=-7/9 on Y and [0 0] those on X.
subplot(122);
stem(n,y);                  % Plotting Output Signal
xlabel(['Discrete in Time n']);
ylabel(['Discrete in Amplitu Y[n]']);
title(['Output Signal']);

RESULTS :

HAND USING CLASSICAL METHOD :


Related Solutions

A SISO DT LTI system having input x[n] and output is described by the difference equation...
A SISO DT LTI system having input x[n] and output is described by the difference equation y[n] = 0.5x[n] + 0.5x[n-1]. Obtain the unit sample response of the system by solving the difference equation. ( DO NOT USE LaPlace transforms or Z transforms)
The impulse response of a discrete-time LTI system is given as ℎ[?] = ?[? + 1]...
The impulse response of a discrete-time LTI system is given as ℎ[?] = ?[? + 1] − ?[? − 1] a) State whether or not the system is (i) memoryless, (ii) causal, (iii) stable. Justify your answers mathematically. b) Find the output ?[?] of the system for input ?[?] = (0.5) ??[?].
the following are impulse responses/outputs of discrete -time LTI systems. Determine whether each system is causal...
the following are impulse responses/outputs of discrete -time LTI systems. Determine whether each system is causal and/or stable. justify your answers 1. h [n] = 1/5^n u [n] 2. h [n] = 5^n u [3-n] 3. y [n] = 3x [n] - 0.15y [n-1] 4. y [n] = 2e^-x [n] 5. y [n] = n^2 4x [n] B. Show if the systems defined in 1 to 5 above have bounded input and output (BIBO) from the summation of their impulse...
CHAPTER 13: DISCRETE-TIME SIGNAL (TEXTBOOK SIGNALS AND SYSTEM BY MAHMOOD NAHVI) 12. In an LTI system,...
CHAPTER 13: DISCRETE-TIME SIGNAL (TEXTBOOK SIGNALS AND SYSTEM BY MAHMOOD NAHVI) 12. In an LTI system, x(n) is the input and h(n) is the unit-sample response. Find and sketch the output y(n) for the following cases: i) x(n) = 2[u(n) - u(n - 11)] and h(n) = 0.5nu(n) ii) x(n) = 2[u(n) - u(n - 11)] and h(n) = (-0.5)nu(n) iii) x(n) = u(n) - u(n - 5) and h(n) = 0.5|n|u(n) iv) x(n) = u(n) - u(n - 5)...
Consider the first order linear time-invariant (LTI) system given by, ??(?) ?? + 4?(?) = ?(?)...
Consider the first order linear time-invariant (LTI) system given by, ??(?) ?? + 4?(?) = ?(?) Where the system is initially at rest. Part a: Determine the Frequency Response H(jω) and impulse response h(t). Part b: When the input ?(?) = ?23?(?), determine the output of the system ?(?). Part c: Is the system; memoryless? causal? Stable? please justify your answer
Suppose the initial conditions of the economy are characterized by the following equations. In this problem,...
Suppose the initial conditions of the economy are characterized by the following equations. In this problem, we assume that prices are fixed at 1 (the price index is 100 and when we deflate, we use 1.00) so that nominal wealth equals real wealth. 1) C = a0 + a1 (Y - T) + a2 (WSM) + a3 (WRE) + a4 (CC) + a5 (r) 1’) C = a0 + a1 (Y - 200) + a2 (10,000) + a3 (15,000) +...
Q1.Consider an inventory system in discrete time with the following description. At the beginning of the...
Q1.Consider an inventory system in discrete time with the following description. At the beginning of the period the inventory decreases by one unit if the inventory level at the beginning is positive other the level remains zero till the end of the period. At the end of the period nth period, the inventory is increased by an amount Vn, where {Vn|n ≥ 1} is i.i.d. with P{V1 = i} = pi , i ≥ 0. Let Xn denote the level...
Q1.Consider an inventory system in discrete time with the following description. At the beginning of the...
Q1.Consider an inventory system in discrete time with the following description. At the beginning of the period the inventory decreases by one unit if the inventory level at the beginning is positive other the level remains zero till the end of the period. At the end of the period nth period, the inventory is increased by an amount Vn, where {Vn|n ≥ 1} is i.i.d. with P{V1 = i} = pi , i ≥ 0. Let Xn denote the level...
Suppose the initial conditions of the economy are characterized by the following equations in black font....
Suppose the initial conditions of the economy are characterized by the following equations in black font. We then shock the economy as shown in italics. 1) C = a0 + a1 (Y-T) + a2 (WSM) + a3 (WRE) + a4 (CC) + a5 (r) 1’) C = a0 + a1 (Y-200) + a2 (10,000) + a3 (15,000) + a4 (120) + a5 (3) 1’') C = a0 + a1 (Y-200) + a2 (12,000) + a3 (15,000) + a4 (160) +...
4. i) An input signal of an LTI system is assumed to be a rectangular pulse...
4. i) An input signal of an LTI system is assumed to be a rectangular pulse sequence x[n] of length 2L samples. Represent x[n] in terms of a unit step sequence and sketch x[n] if it turns on at n=0. ii) Suppose the impulse response of the system is also a rectangular pulse sequence h[n] of length L samples. Represent h[n] in terms of a unit step sequence and sketch h[n] if it turns on at n=0. iii) Determine the...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT