Skip to content
Snippets Groups Projects
Commit 109abfda authored by Achilles Kappis's avatar Achilles Kappis
Browse files

Fix bug throwing error in arrMan.m and the columns of array manifold now hold...

Fix bug throwing error in arrMan.m and the columns of array manifold now hold the manifold per frequency
parent 7084fe93
Branches
No related tags found
1 merge request!9Various bug fixes and updates
......@@ -3,7 +3,7 @@
% Author: Achilles Kappis
% e-mail: axilleaz@protonmail.com
%
% Date: 29/09/2024 (DD/MM/YYYY)
% Date: 05/10/2024 (DD/MM/YYYY)
%
% Copyright: MIT
% --------------------------------------------------
......@@ -64,10 +64,10 @@ function am = arrMan(mPos, dirs, k)
[x, y, z] = sph2cart(dirs(1, :), dirs(2, :), ones(size(dirs(1, :))));
% Inner product of directions and sensor position
am = [x; y; z] * mPos;
am = [x; y; z].' * mPos;
% Multiply with wavenumbers
am = am .* permute(k(:), [3, 2, 1]);
am = am.' .* permute(k(:), [3, 2, 1]);
% Calculate the exponential
am = exp(1i * am);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment