Develop an M-file function that uses the fft function to generate a power spectrum plot. Use it
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 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
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Applied Numerical Methods With MATLAB For Engineers And Scientists
ISBN: 9781259027437
3rd Edition
Authors: Steven C. Chapra
Question Posted: