Borrar filtros
Borrar filtros

Errors while performing fft

1 visualización (últimos 30 días)
Samyukta Ramnath
Samyukta Ramnath el 6 de Mzo. de 2013
I took a file which was a clean, repeating waveform of the note F2 (I deduced this by playing F2 on the virtual piano and playing the wave fle, and comparing) on a piano. When I did the fft of the signal, by using wavread of the saved wav file, I got a peak frequency of 176.4 Hz, which is one octave off the correct frequency of the note F2. When I analysed another note, this time recorded from a physical piano, I got the exact same peak frequency. How is this possible? It is possible that MATLAB stores the peak frequency in its memory for more than one file? If so, how do I solve this problem? P.S. when we analysed a full song, i.e. a wav file containing many notes, we got many peaks, which confirmed that we weren't using the same graph for everything.

Respuestas (1)

Jan
Jan el 6 de Mzo. de 2013
No, of course Matlab does not have a magic memory, which replies a certain value for another problem. I'm convinced that the observed effect is deterministic and caused by a programming error. When you post the corresponding code, a suggestion for improvements would be possible.

Categorías

Más información sobre Just for fun en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by