FFT to a simple sine wave
Show older comments
I have a simple text file with two columns, amplitude and time steps values. i want to apply fft to the signal so that output should look like attached picture. consider just one waveform.

1 Comment
Dyuman Joshi
on 22 Apr 2024
What have you tried yet?
What issues are you facing?
Answers (1)
Star Strider
on 22 Apr 2024
0 votes
I am not certain what the independent variable axis is (the label is cut off), however if you want a power spectral density plot, use the pwelch function.
Categories
Find more on Parametric Spectral Estimation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!