FFT of sine function

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?

Respuestas (1)

sloppydisk
sloppydisk el 25 de Mayo de 2018

0 votos

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

Categorías

Más información sobre Fourier Analysis and Filtering en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 25 de Mayo de 2018

Respondida:

el 25 de Mayo de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by