Why my mel filters do not overlap on each other?
7 次查看(过去 30 天)
显示 更早的评论
The 26 filters should overlap on each other. Could someone help me with this?
1 个评论
Star Strider
2016-3-18
I’ve never used or designed MEL filters. I refer you to: Mel Frequency Cepstral Coefficient (MFCC) tutorial since it seems to be a comprehensive discussion. Compare your code with that discussion.
采纳的回答
Rick Rosson
2016-3-20
编辑:Rick Rosson
2016-3-21
I think the problem is in the second elseif statement:
elseif (k>=f_range(m+1) && k<=f_range(m))
These two sub-conditions are mutually exclusive, so this condition is always false. As a result, the line after this condition, which creates the right half of the triangle, is never executed.
Please try:
elseif (k>f_range(m) && k<=f_range(m+1))
That being said, there are much easier and more efficient ways to create the filter bank in MATLAB, for example:
- logical indexing
- the tripuls function
2 个评论
Rick Rosson
2016-3-21
You need to create 2 extra points in f_range. So replace the following two lines:
%Need 26 points spaced linearly between minfreq and maxfreq
f_range = linspace(minMel, maxMel, nfilts);
with these two:
%Need 28 points spaced linearly between minfreq and maxfreq
f_range = linspace(minMel, maxMel, nfilts+2);
更多回答(1 个)
Rick Rosson
2016-3-20
编辑:Rick Rosson
2016-3-20
2 个评论
Star Strider
2016-3-20
I’m not certain that will work. When I looked up the MEL filters (that are designed to emulate cochlear frequency responses), the pass-bands were intersecting and looked something like: ...XXXXX...
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Feature Extraction 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!