MATLAB Problem. This is long but really the only way to ask this question as the
ID: 3789364 • Letter: M
Question
MATLAB Problem. This is long but really the only way to ask this question as the parts depend on each other.
6. Generate a vector with 12 zeros, then replace the first 8 of those zeros with ones (or use some other approach to create a vector that consists of 8 ones followed by 4 zeros). Also, generate yet another time vector starting at time t-0, and now use a deltat 1ms (not the same as either of the last 2 problems0 a. Plot the result as a function of time. b. Copy this vector into another vector. To convolve these two vectors. take the fft of each vector, multiply the results of the ffts, and then take the inverse fft of the product. Plot the result as a function of time. c. What is wrong with the result? (Hint: change your vertical plot axes such that the range of values plotted starts at zero). d. What would you expect the extent of the triangle function to be based on your experience working with analytical Fourier transforms (and the properties given in class? te this circular convolution artifact by zero padding each of the e. original vectors (by taking the ifft of the product of the two ffts, as before). Generate a new time vector Gof the appropriate length) and plot the result. f Indicate the exact number of additional zeros that are required (it is okay if you use more than this in your plot, but be sure to give the minimum amount of zero padding that is required to obtain the correct result).Explanation / Answer
As per chegg policy I will answer only 3question.
1)
v=[1 1 1 1 1 1 1 1 0 0 0 0]
t=[0:1:12]
ts1 = timeseries(v,t);
plot(ts1)
v1=v;
2)
v1f= fft(v1)
vf=fft(v)
mul=v1f.*vf;
iv1f=ifft(v1f);
ivf=ifft(vf);
ts2 = timeseries(ivf,t);
plot(ts2);
3)
Wrong amplitude values after the FFT and frequency.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.