diff --git a/Sound Fields/MATLAB/Functions/ptSrcField.m b/Sound Fields/MATLAB/Functions/ptSrcField.m index b6fcaa1c9f5144ca72737e24f3bc5850a1230bad..f76185b34fab77e7fc0acc9bf669fa29cf656d46 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