How to perform k-means clustering on Spectrogram (Short Time Fourier Transform) to cluster frequency band.
8 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
In this paper, it suggest using k-means clustering on spectrogram to cluster frequency bands. So, for each audio signal, I get a f x t matrix with f is frequency bin and t is time sequence for that bin. I don't know how to perform k-means on that matrix.
0 commentaires
Réponses (1)
KSSV
le 22 Mar 2018
Check the below example code:
x = rand(1000,1) ; y = rand(1000,1) ; % random points
N = 4 ; % number of groups
[idx,C,sumd] = kmeans([x y],N) ; % apply kmeans
figure
hold on
for i = 1:N
plot(x(idx==i),y(idx==i),'.') ;
plot(C(i,1),C(i,2),'*')
end
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!