Question: Develop an M-file function that uses the fft function to generate a power spectrum plot. Use it to solve Prob. 16.9. Data From Problem16.9 Duplicate

Develop an M-file function that uses the fft function to generate a power spectrum plot. Use it to solve Prob. 16.9.

Data From Problem16.9

Duplicate Example 16.3, but for 64 points sampled at a  rate of Δt = 0.01 s from the function

f (t) = cos[2 π (12.5)t] + cos[2 π (25)t]

Use fft to generate a DFT of these values and plot the results.

In Example 16.3

Apply the MATLAB fft function to determine the discrete Fourier transform for

Apply the MATLAB fft function to determine the discrete Fourier transform for a simple sinusoid: f(t) = 5+ cos(2 (12.5)t) + sin(27 (18.75)t) Generate 8 equispaced points with At = 0.02 s. Plot the result versus frequency.

Step by Step Solution

3.48 Rating (161 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Heres an Mfile function that uses the fft function to generate a power spectrum plot function powers... View full answer

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 Applied Numerical Methods Questions!