FFT shows different frequency
Mostrar comentarios más antiguos
Hello,
I have a question regarding my FFT result.
I have 3 audio files from a welding process with 120A, 130A and 140A with a audio length of about 0,085s.
You can see the audio file in the first row from the plot.
After that i've created a FFT from every audio file which are located in the second row. The maximum peak from every audio file is at about 200Hz.

When i calculate the period between the welding pulse i have a period of about 0,00871s at a welding current of 140A.
This is exakt the first peak in the FFT plot.

My question is, why is the maximum peak exactly at twice the frequency at about 200Hz and not like i calculated at about 100 Hz?
I hope someone could explain this to me
Many thanks in advance!
BR
Respuestas (1)
Star Strider
el 4 de Jul. de 2019
0 votos
We would have to see your code (and preferably also at least one of your data files) to determine what the problem is.
Most likely, you did not calculate your frequency axis vector correctly. If you normalilsed it to your sampling frequency rather than the Nyquist frequency (the correct scaling), that could account for the frequencies being off by a factor of 2.
4 comentarios
Mathias PILI
el 4 de Jul. de 2019
Star Strider
el 4 de Jul. de 2019
I do not see any problems with your time vector or frequency vector. When I analysed our data using code I am more vamiliar with, I got the same result.
I also checked the inter-peak intervals with findpeaks:
[pks,locs] = findpeaks(data, 'MinPeakDistance',400);
figure
plot(data)
hold on
plot(locs, pks, '^r')
hold off
grid
loctimes = locs/Fs;
dloctimes = diff(loctimes);
freqloctimes = 1./dloctimes;
meanfreqloctimes = mean(freqloctimes);
and confirmed that the inter-peak intervals correspond to about 97.7 Hz.
It is unusual that the second harmonic of the fundamental frequency has more energy that the fundamental frequency itself, however that appears to be the situation with your data.
Mathias PILI
el 5 de Jul. de 2019
Star Strider
el 5 de Jul. de 2019
I have nothing more to add.
Since I did not solve your problem, I will delete my Answer.
Categorías
Más información sobre Fourier Analysis and Filtering en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!