highest frequency
6 ビュー (過去 30 日間)
古いコメントを表示
Hi,
is there a matlab function that computes the highest frequency of occurences? for example: A=[3423 3420 3423 3421 3423 3523 3524 3545 3644 3999]; how can i get as an answer 3423 since it occurs the most?
0 件のコメント
採用された回答
その他の回答 (1 件)
Oleg Komarov
2011 年 7 月 2 日
A = [3423 3420 3423 3421 3423 3523 3524 3545 3644 3999];
unA = unique(A);
counts = histc(A,unA);
[m,idx] = max(counts);
unA(idx)
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!