From a80579fdccbc073915a08c8147bc9483816bde49 Mon Sep 17 00:00:00 2001 From: ZaellixA <axilleaz@protonmail.com> Date: Fri, 31 May 2024 15:13:32 +0100 Subject: [PATCH] Update lsDcft.m to specifically use the pseudo-inverse for the calculation of the coefficients --- Sound Fields/MATLAB/Functions/lsDcft.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sound Fields/MATLAB/Functions/lsDcft.m b/Sound Fields/MATLAB/Functions/lsDcft.m index 98f70a8..0cb75e1 100644 --- a/Sound Fields/MATLAB/Functions/lsDcft.m +++ b/Sound Fields/MATLAB/Functions/lsDcft.m @@ -3,7 +3,7 @@ % Author: Achilles Kappis % e-mail: axilleaz@protonmail.com % -% Date: 28/05/2024 (DD/MM/YYYY) +% Date: 31/05/2024 (DD/MM/YYYY) % % Copyright: MIT % -------------------------------------------------- @@ -51,5 +51,5 @@ function circFtCoeffs = lsDcft(sig, circHarms) % ============================================= % Calculate the coefficients % ============================================= - circFtCoeffs = circHarms\sig; + circFtCoeffs = pinv(circHarms) * sig; end \ No newline at end of file -- GitLab