+447737184217 support@onlinenursingwriter.com
Custom Essays Writers

How to solve using matlab The purpose of this problem is to ...


How to solve using matlab The purpose of this problem is to use MATLAB to perform discrete-time convolution and to solve a linear difference equation. Consider an LTI system described by the difference equation y 0.8y-2x under the assumption of initial rest. We want to use MATLAB to compute the output y for the following three inputs x: (i) u – u, (ii) u 2u+ u, and (ii) (0.7)*n u. This should be done for each input using the three methods given below. For each method, turn in a listing of the code used to compute y, along with plots of x and y on the same axes (using an appropriate range 5. 3 5 9 of n to adequately illustrate the solution). a) (10 pts) Design a program to implement this equation directly in MATLAB. That is, your program should perform the recursion similar to that in Example 2.15. b) (10 pts) Design a program to implement the convolution sum directly. This should be written for arbitrary x and h. Note that to do this, you will have to determine the impulse response h of this system, either analytically or using the results of part a) c) (5 pts) Use the convO function to compute the convolution. The convO function is a built-in function of MATLAB. Compare the results that you obtain to those in parts a) and b).