Question: Matlab code 2. Consider two DT signals zIn] and hinl, given to you over an interval of length N from n 0 through n =
2. Consider two DT signals zIn] and hinl, given to you over an interval of length N from n 0 through n = (N-1). (a) For this part, assume that signals [n) and h[n] are periodic with period N. Write a MATLABTM function, y myCONVCirc(x, h) which takes, as input arguments, a vector z that represents a signal x[n] and a vector h that represents h[n] and which returns a vector y which represents the signal yn], obtained as the periodic (or circular) convolution defined as N-1 (b) Now repeat the exercise of 2a, where instead of assuming that nl and hn] are periodic, assume that these signals are 0 outside the interval from 0 through (N-1), over which they are specified name your function as myCONVLin(x, h). Recall, that the (linear) convolution of the signals in) and hin) is given by (c) Given N-8 and the signals z = [1, 2, 3, 4, 5, 6, 7, 8] and h-|1,1,0,0,0,0,0,0], plot the output signal ye[n] and the signal yin] on two separate plots. Then truncate yin] to retain only the first N samples and plot ye[n] and yin] on a single plot so as to compare the results of the circular and linear convolutions. Use different line-styles and colors to distinguish the different signals on your plot
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
