Thanks. I work!, but I do not understand why I should divide the fft(x)'s vector by lenght(x).
For example in the next picture, the max lobule must to be on 100 Hz. why not is there?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/175228/image.png)
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!