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

Fix input check in firstOrderDma.m to check first dimension of input argument instead of second

parent 57c9d363
Branches
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: 05/11/2024 (DD/MM/YYYY)
% Date: 17/11/2024 (DD/MM/YYYY)
%
% Copyright: MIT
% --------------------------------------------------
......@@ -77,8 +77,8 @@ function [h, output] = firstOrderDma(input, freq, d, pPattern, beta)
% ====================================================
validateattributes(input, {'numeric'}, {'3d', 'nonnan', 'finite', 'nonempty'}, mfilename, 'Input', 1);
if mod(size(input, 2), 2) ~= 0
error("Second dimension of 'input' parameter must have even length.")
if mod(size(input, 1), 2) ~= 0
error("First dimension of 'input' parameter must have even length.")
end
validateattributes(freq, {'numeric'}, {'real', 'nonnan', 'finite', 'nonempty', 'vector', 'numel', size(input, 3)}, mfilename, 'Frequencies', 2);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment