Question: use Matlab Write a function file that outputs the step response of a system. The input to this function should be the impulse response h[]
use Matlab Write a function file that outputs the step response of a system. The input to this function should be the impulse response h[] of a system. Presume that h[] = 0 for < 0. So h[0] is represented by h(1). Test your function by writing a script file which passes the following impulse responses to the function you implemented.
h1[] = [] + 2[ 2]
h2[] = 3[ 1] + [ 2] 4[ 5]
h3[] = [] [ 1]
Plot the step responses against , where = 0,1, ,9. Use the same figure to plot all the step responses. Use proper legends, line colors, markers, and axes limits.
Hints: zeros(m,n) creates a zero matrix of dimension . So zeros(1,10) creates a 10
element zero vector. Setting its first element to 1 will mimic a unit impulse signal. Also, the step
response of a discrete time system is given by [] = h[]. =
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
