From bd3099f0ea8519384b02e0400e15eb802aedc00f Mon Sep 17 00:00:00 2001 From: ZaellixA <axilleaz@protonmail.com> Date: Wed, 26 Feb 2025 11:57:51 +0000 Subject: [PATCH] Revert to using serial for-loops in ptSrcField.m --- Sound Fields/MATLAB/Functions/ptSrcField.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sound Fields/MATLAB/Functions/ptSrcField.m b/Sound Fields/MATLAB/Functions/ptSrcField.m index b6fcaa1..f76185b 100644 --- a/Sound Fields/MATLAB/Functions/ptSrcField.m +++ b/Sound Fields/MATLAB/Functions/ptSrcField.m @@ -3,7 +3,7 @@ % Author: Achilles Kappis % e-mail: axilleaz@protonmail.com % -% Date: 19/12/2024 (DD/MM/YYYY) +% Date: 26/02/2025 (DD/MM/YYYY) % % Copyright: MIT % -------------------------------------------------- @@ -113,7 +113,7 @@ function waveField = ptSrcField(sPos, rPos, f, Q, c, rho) % Calculate variables % ============================================ % Go through the frequencies - parfor fIdx = 1:numel(f) + for fIdx = numel(f):-1:1 % Calculate parameters w = 2 * pi * f(fIdx); % Radial frequency k = w/c; % Wavenumber -- GitLab