Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please do this in MATLAB. My code in the convolution is h = conv(h1,h2)-conv(h1,conv(h3,h4)); Create a Function Representing a Total Impulse Response Create a function
Please do this in MATLAB. My code in the convolution is h = conv(h1,h2)-conv(h1,conv(h3,h4));
Create a Function Representing a Total Impulse Response Create a function named 'mySystem', which has the following input and output arguments. Input x - the input signal (vector) h1,h2,h3, and h4 - the impulse responses (vectors) Output y - the output response (vector) h - total impulse response (vector) The function computes for the total impulse response h and convolves it, using the conv function, with the input signal x to get the output response y. The first elements of the vectors are at n=0. The individual impulse responses h1,h2,h3, and h4 are arranged as shown below. The function must also plot the discrete-time h and y in a single figure, with y on top of hStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started