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 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
Heres an Mfile function that uses the fft function to generate a power spectrum plot function powers... View full answer
Get step-by-step solutions from verified subject matter experts
