From e0ec195bcdd66b85db8efc448350ef9077edfc1f Mon Sep 17 00:00:00 2001 From: Seppo Ingalsuo Date: Tue, 11 Jan 2022 15:34:49 +0200 Subject: [PATCH] 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 --- tools/test/audio/std_utils/stdnotch_get.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/test/audio/std_utils/stdnotch_get.m b/tools/test/audio/std_utils/stdnotch_get.m index 696bbb560..c79e6fb51 100644 --- a/tools/test/audio/std_utils/stdnotch_get.m +++ b/tools/test/audio/std_utils/stdnotch_get.m @@ -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);