Question: Also, answer the questions. 2. Generate a vector with 32 zeros, then replace the first 8 of those zeros with ones (or use some other

Also, answer the questions. 2. Generate a vector with 32 zeros, thenAlso, answer the questions.

2. Generate a vector with 32 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 24 zeros). Store this result in one variable. Now generate another vector with 32 zeros, and then replace the last 8 zeros with ones. Store this result in another variable. Create a third time vector, starting at t=0 and with a deltat=10ms (not the same as in the last problem). a. Plot these two rect functions as a function of time on the same axes. b. Take the fft of the first 2 vectors, and display the absolute values of each on the same plot. Be sure to calculate and show the frequency values on this plot. How do these two plots compare? c. Make a second plot that contains the phase (use the 'angle' command) of the fft of both vectors. Be sure to show the frequency values on this plot. How do these two plots compare? At first glance, these appear to be completely different. d. From the table of Fourier transform properties, how would you expect these to compare? Make a third plot of the difference between the two phases. Once again, be sure to show the frequency values on this plot. f. Make a fourth plot that unwraps the difference (by using the 'unwrap' command in Matlab applied to the difference between the two phases). Again, be sure to show the frequency values on this plot. g. What do you observe in part e)? Is this the same as your answer to part c)? h. What operation is performed by the 'unwrap' command (use layman's terms, don't just repeat what the Matlab 'help' command tells you)? e

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!