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

Update header documentation of firstOrderDma.m to resemble the changes in the...

Update header documentation of firstOrderDma.m to resemble the changes in the order of input arguments
parent 921032ee
No related branches found
No related tags found
1 merge request!12Implementation of first order differential arrays in the time domain
......@@ -3,7 +3,7 @@
% Author: Achilles Kappis
% e-mail: axilleaz@protonmail.com
%
% Date: 04/12/2024 (DD/MM/YYYY)
% Date: 04/01/2025 (DD/MM/YYYY)
%
% Copyright: MIT
% --------------------------------------------------
......@@ -12,13 +12,6 @@
% --------------------------------------------------
% Input
%
% input [numeric]: The input to the array. 3D array/matrix with dimensions
% 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.
%
% freq [numeric]: The frequencies of interest. A vector with number of
% elements matching the third dimension of the "input"
% parameter.
......@@ -50,6 +43,13 @@
% appropriate value is automatically set, and
% this argument is ignored. [Default: 0]
%
% input [numeric]: The input to the array. 3D array/matrix with dimensions
% 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.
%
% --------------------------------------------------
% Output
%
......@@ -97,7 +97,7 @@ function [h, output] = firstOrderDma(freq, d, pPattern, beta, input)
end
% Check alpha (angle of null)
if nargin > 2 && ~isempty(pPattern);
if nargin > 2 && ~isempty(pPattern)
if isstring(pPattern) || ischar(pPattern)
validateattributes(pPattern, {'char', 'string'}, {'scalartext', 'nonempty'}, mfilename, 'Polar pattern', 3);
elseif isnumeric(pPattern)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment