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

Fixed bug in virtMicGeo.m where when single mic was chosen an arrangement length was required

parent 5d9e0bba
No related branches found
No related tags found
No related merge requests found
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
% Author: Achilles Kappis % Author: Achilles Kappis
% e-mail: axilleaz@protonmail.com % e-mail: axilleaz@protonmail.com
% %
% Date: 25/03/2024 (DD/MM/YYYY) % Date: 12/07/2024 (DD/MM/YYYY)
% %
% Copyright: MIT % Copyright: MIT
% -------------------------------------------------- % --------------------------------------------------
...@@ -94,7 +94,7 @@ function [vPos, vPosMesh] = virtMicGeo(gType, xLen, xOff, yOff, zOff, nSens, ori ...@@ -94,7 +94,7 @@ function [vPos, vPosMesh] = virtMicGeo(gType, xLen, xOff, yOff, zOff, nSens, ori
validatestring(gType, ["Single", "Dual", "Array", "Grid", "Cube"], mfilename, "Geometry type", 1); validatestring(gType, ["Single", "Dual", "Array", "Grid", "Cube"], mfilename, "Geometry type", 1);
% Validate optional arguments % Validate optional arguments
if nargin > 1 && ~isempty(xLen) if nargin > 1 && ~isempty(xLen) && ~strcmpi(gType, "Single")
validateattributes(xLen, "numeric", {'scalar', 'real', 'nonnan', 'finite', 'positive'}, mfilename, "Width of the geometry, or distance between positions in Dual geometry", 2); validateattributes(xLen, "numeric", {'scalar', 'real', 'nonnan', 'finite', 'positive'}, mfilename, "Width of the geometry, or distance between positions in Dual geometry", 2);
else else
if strcmpi(gType, "Dual") if strcmpi(gType, "Dual")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment