Question: Write a MATLAB function and testbench to obtain the first 10 elements of the following difference equation (name the MATLAB function and testbench Lab4_probleml and

Write a MATLAB function and testbench to obtain the first 10 elements of the following difference equation (name the MATLAB function and testbench Lab4_probleml and Lab4_probleml_testbench, respectively): y[n] = 0.5y[n 1] + x[n], x[0] = 1 The function Lab4_probleml needs to be in the following form: function y=Lab4_problem1(x, n) x: Input signal values n: Number of time steps y: Output signal values
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
