Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the discrete-time signal x[n] shown below, where x[n] = 0 for n 3. 2 0 -1 -2 -6 -5 -3 - 1 1 5

image text in transcribed

Consider the discrete-time signal x[n] shown below, where x[n] = 0 for n 3. 2 0 -1 -2 -6 -5 -3 - 1 1 5 6 0 Timen (a) In this part, you'll be comparing the DTFT that you calculated and the DFT calculated using MATLAB. i. Use MATLAB to plot the magnitude and phase of the DTFT of x[n] that you calculated in Part (a) as functions of angular frequency N. (6 points) ii. Next, create a MATLAB vector of length 1024 that starts with the nonzero values of x[n] and is otherwise 0. (This is called zero-padding and is often done when working with short signals. In this case, you're just adding values of x [n] at times n when x[n] = 0.) Use the MATLAB function fft to calculate the DFT of this signal and plot the magnitude and phase of the DFT as functions of angular frequency 12. (10 points) iii. How do the magnitudes and phases of the DTFT and the DFT compare to each other? If they are different, use the properties of the DTFT or the properties of the DFT to explain why. (5 points) Consider the discrete-time signal x[n] shown below, where x[n] = 0 for n 3. 2 0 -1 -2 -6 -5 -3 - 1 1 5 6 0 Timen (a) In this part, you'll be comparing the DTFT that you calculated and the DFT calculated using MATLAB. i. Use MATLAB to plot the magnitude and phase of the DTFT of x[n] that you calculated in Part (a) as functions of angular frequency N. (6 points) ii. Next, create a MATLAB vector of length 1024 that starts with the nonzero values of x[n] and is otherwise 0. (This is called zero-padding and is often done when working with short signals. In this case, you're just adding values of x [n] at times n when x[n] = 0.) Use the MATLAB function fft to calculate the DFT of this signal and plot the magnitude and phase of the DFT as functions of angular frequency 12. (10 points) iii. How do the magnitudes and phases of the DTFT and the DFT compare to each other? If they are different, use the properties of the DTFT or the properties of the DFT to explain why. (5 points)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Behavioral Finance And Capital Markets

Authors: A. Szyszka

5th Edition

1137338741, 9781137338747

More Books

Students also viewed these Finance questions