mirror of https://github.com/thesofproject/sof.git
Test: Audio: Fix stdnotch_get() function issue in Matlab
The path append of current directory (.) is not correct for the signal processing package function iirnotch. The issue does not happen with Octave since it has pei_tseng_notch(). The standard notch function is used in all THD+N tests so this issue has caused fail of nearly all tests with Matlab. Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
This commit is contained in:
parent
30012d1454
commit
e0ec195bcd
|
@ -43,7 +43,7 @@ function [b, a] = stdnotch_get(fn, fs)
|
|||
|
||||
target_q = 2.1;
|
||||
bw = (2*fn/fs)/target_q;
|
||||
if exist(fullfile('.', 'iirnotch.m'),'file') == 2
|
||||
if exist(fullfile('iirnotch.m'),'file') == 2
|
||||
[b, a] = iirnotch(2*fn/fs, bw);
|
||||
else
|
||||
[b, a] = pei_tseng_notch(2*fn/fs, bw);
|
||||
|
|
Loading…
Reference in New Issue