From 1a21124f130bed09b0c98e8bd91e6d5f502fd617 Mon Sep 17 00:00:00 2001 From: ZaellixA <axilleaz@protonmail.com> Date: Wed, 22 Jan 2025 14:24:06 +0000 Subject: [PATCH] Fix bug where delay was not recognised if was given as vector with the first value being zero --- .../Remote Microphone Technique/MATLAB/Functions/obsFiltTd.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Virtual Sensing/Remote Microphone Technique/MATLAB/Functions/obsFiltTd.m b/Virtual Sensing/Remote Microphone Technique/MATLAB/Functions/obsFiltTd.m index 17ca29a..aeb51e7 100644 --- a/Virtual Sensing/Remote Microphone Technique/MATLAB/Functions/obsFiltTd.m +++ b/Virtual Sensing/Remote Microphone Technique/MATLAB/Functions/obsFiltTd.m @@ -3,7 +3,7 @@ % Author: Achilles Kappis % e-mail: axilleaz@protonmail.com % -% Date: 05/01/2025 (DD/MM/YYYY) +% Date: 22/01/2025 (DD/MM/YYYY) % % Copyright: MIT % -------------------------------------------------- @@ -222,7 +222,7 @@ function [O, Rme, Rmm, Ovec, RmeMtx, RmmMtx, condNum, mMtx, Omean, RmeMean, RmmM % Pre-process data % ==================================================== % Delay the virtual microphone signals - if logical(delay) + if sum(logical(delay)) if isempty(fs) for jIdx = size(e, 3):-1:1 e(:, :, jIdx) = delayseq(e(:, :, jIdx), delay); -- GitLab