FFT of sine function

5 visualizzazioni (ultimi 30 giorni)
Namira
Namira il 25 Mag 2018
Risposto: sloppydisk il 25 Mag 2018
I am trying to plot power of sine function. When I do FFT of sine wave I got two peaks for a single sin function. I don't know understand it. Why do I get two frequency spikes from a simple sin function via FFT? How can I get only one peak for a single sin function?

Risposte (1)

sloppydisk
sloppydisk il 25 Mag 2018
You'll get both positive and negative frequencies, see
doc fft
for an example of a single-sided spectrum, i.e. only positive frequencies.

Categorie

Scopri di più su Fourier Analysis and Filtering in Help Center e File Exchange

Tag

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by