The Harmonic Frequencies Estimation
2 ビュー (過去 30 日間)
古いコメントを表示
I am working to drone sound detetion. in order to distinguish drone, ifferent fundamental frequencies can potentially used.
I need to find Harmonics frequencies in my data set as its most part consists of drone sound.
I studied one algortihm but its very complex to implement after designing its function.
Kindly guide me i need your help in this regards.
function f=fre_harmonic(s,fl,fr,ft,N, NN,fs)
%fs: sampling frequency 32000; N = 5, s = sound of drone data in frames with 50% overlapping.
FFT_s=abs(fft(s, N));
fl1=ceil(fl*fs/N); %Transform Frequency to Points + inf
fr1=floor(fr*fs/N); %Transform Frequency to Points - inf
[v,f(1)]=max(FFT_s(fl1:fr1));
for n=2:NN
fl1=ceil((n/(n-1)*f(n-1)-ft)*fs/N);
fr1=floor((n/(n-1)*f(n-1)+ft)*fs/N);
[v,f1]=max(FFT_s(fl1:fr1));
f(n)=f1+fl1;
end
![freqency harmonics.JPG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/209337/freqency%20harmonics.jpeg)
0 件のコメント
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Code Generation and Deployment についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!