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

80.2K

Verified Solution

Question

Electrical Engineering

 

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.

Answer & Explanation Solved by verified expert
4.0 Ratings (508 Votes)
MATLAB PROGRAM clcclear allclose allnum 1 Numerator of the Transfer Function From DifferenceEquationden 1 23    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students