validateattributes(xLen,"numeric",{'scalar','real','nonnan','finite','positive'},mfilename,"Width of the geometry, or distance between positions in Dual geometry",2);
validateattributes(nSens,"numeric",{'vector','real','nonempty','nonnan','nonnegative','integer','finite'},mfilename,"Number of sensors in the geometry",3);
ifnumel(nSens)>3||numel(nSens)==2
error("The number of sensors must be either a scalar or a vector with three elements");
end
ifisscalar(nSens)&&strcmpi(gType,"Cube")
ifmod(nthroot(nSens,sum(geoDim~=0)),1)~=0
error("The number of sources is cannot be divided uniformly over the non-zero dimensions");
validateattributes(orient,{'numeric'},{'vector','nonempty','nonnan','finite','real','numel',3},mfilename,"Geometry rotation around the Cartesian axes",7);
validateattributes(nSens,"numeric",{'scalar','real','nonnegative','finite','nonnan'},mfilename,"Number of sensors",6);