Answered step by step
Verified Expert Solution
Question
1 Approved Answer
please solve this using matlab and please dont copy from other matlab answers MATLAB provides a built-in function conv() that performs discrete-time convolution of two
please solve this using matlab and please dont copy from other matlab answers
MATLAB provides a built-in function conv() that performs discrete-time convolution of two discrete-time sequences. For the first problem, you will create a your own MATLAB function num_conv() that uses the built-in conv() function for numerically evaluating continuous-time convolution integrals. The function num_conv() will take two waveforms, each defined as a vector of time points and a vector of signal values, and will return the numerical approximation of the continuous-time convolution. The function should follow the following syntax: function (y, ty] = num_conv(x, tx,h, th) % syntax: [y, ty] = num_conv (x, tx, h, th) olo olo olo olo olo olo olo olo olo olo olo % Inputs: X tx h th input signal vector vector of time points in x impulse response vector vector of time points in h You should ensure that the sampling time for x and h are the same i.e. vectors tx and th should use the same increment/sampling g time g & Outputs: % y -- output signal vector, ty -- vector of time points in y length(y) = length(x) + length(h) - 1 olo olo olo olo The function num_conv() should plot the input x, the impulse response h and the final output y against their corresponding time vectors tx, th and ty, respectively. Make sure that tx and th use the same sampling time and that the time vector ty is calculated correctlyStep 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