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

Fix header documentation in firstOrderDma.m and output calcualtions

parent 6bf3d50e
No related branches found
No related tags found
1 merge request!10Update 3D rotations function interface
......@@ -13,9 +13,9 @@
% Input
%
% input [numeric]: The input to the array. 3D array/matrix with dimensions
% IxMxF, where I is the number of measurments (or length
% of signals), M represents the number of microphones and
% must be even and F is the number of frequencies of
% MxIxF, where M represents the number of microphones and
% must be even, I is the number of measurments (or number
% of sources), and F is the number of frequencies of
% interest. Each microphone pair is treated as a first
% order DMA.
%
......@@ -156,7 +156,7 @@ function [h, output] = firstOrderDma(input, freq, d, pPattern, beta)
for freqIdx = length(freq):-1:1
for pairIdx = size(input, 1)/2:-1:1
% Multiply the array filter with the input
output(:, pairIdx, freqIdx) = h(:, freqIdx)' * input(:, pairIdx * 2 - 1:pairIdx * 2, freqIdx);
output(pairIdx, :, freqIdx) = h(:, freqIdx)' * input(pairIdx * 2 - 1:pairIdx * 2, :, freqIdx);
end
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment