- logical indexing
- the tripuls function
Why my mel filters do not overlap on each other?
3 ビュー (過去 30 日間)
編集済み: 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.
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: