From 50f33059912ac45be540031ecea9906b24cf7241 Mon Sep 17 00:00:00 2001
From: ZaellixA <axilleaz@protonmail.com>
Date: Sat, 14 Sep 2024 10:37:28 +0100
Subject: [PATCH] Fix input argument checking to allow single monitoring
 microphone and source calculations

---
 .../MATLAB/Functions/obsFiltEstTD.m                         | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Virtual Sensing/Remote Microphone Technique/MATLAB/Functions/obsFiltEstTD.m b/Virtual Sensing/Remote Microphone Technique/MATLAB/Functions/obsFiltEstTD.m
index 57543de..d8827b8 100644
--- a/Virtual Sensing/Remote Microphone Technique/MATLAB/Functions/obsFiltEstTD.m	
+++ b/Virtual Sensing/Remote Microphone Technique/MATLAB/Functions/obsFiltEstTD.m	
@@ -3,7 +3,7 @@
 % Author: Achilles Kappis
 % e-mail: axilleaz@protonmail.com
 %
-% Date: 13/09/2024 (DD/MM/YYYY)
+% Date: 14/09/2024 (DD/MM/YYYY)
 %
 % Copyright: MIT
 % --------------------------------------------------
@@ -73,8 +73,8 @@ function [estPerMic, est, err, estMean, errMean] = obsFiltEstTD(m, O, e)
     validateattributes(O, "numeric", {'real', 'nonnan', 'nonempty', 'finite'}, mfilename, "Observation filters", 2);
 
     % Check for observation filter size
-    if ismatrix(O) || ndims(O) > 4
-        error("Observation filter must be either a three- or four-dimensional array. See documentation (at the top of the function file) for more information.");
+    if ndims(O) > 4
+        error("Observation filter array cannot have more than four dimensions. See documentation (at the top of the function file) for more information.");
     elseif size(O, 4) ~= size(m, 3) && size(O, 4) ~= 1
         error("The number of observation filter sets must be either equal to the trials/sound field realisations, or 1.")
     end
-- 
GitLab