Why do I have "inside" oscillations when I take the fft of my data
Show older comments
Hi,
I have a data sample that I need to take into the frequency domain, unfortunately I get these oscillations in between the actual negatives and positive values of what I expect, on the left is the sampled signal and on the right the real and imaginary part of its fft.
imag(fftshift(fft(sample)))
real(fftshift(fft(sample)))

Yet what I expect should look like this,

Where did I go wrong about the fft?
Thank you.
4 Comments
Hugo
on 24 Jun 2025
Mathieu NOE
on 24 Jun 2025
hello
well , how does your fft plot looks like if you restraint the x range to -50 / 50 THz ? your plot range is -200 / 200 THz
Hugo
on 24 Jun 2025
Mathieu NOE
on 24 Jun 2025
glad you found the solution
have a nice day !
Answers (0)
Categories
Find more on Spectral Measurements 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!