diff --git a/+tests/FunctionSignatures.mlx b/+tests/FunctionSignatures.mlx index 4e286d7..80e645e 100644 Binary files a/+tests/FunctionSignatures.mlx and b/+tests/FunctionSignatures.mlx differ diff --git a/src/+magicformula/InputParser.m b/src/+magicformula/InputParser.m index e143ac4..598ad66 100644 --- a/src/+magicformula/InputParser.m +++ b/src/+magicformula/InputParser.m @@ -3,9 +3,10 @@ methods (Static) function [p,SX,SA,FZ,IP,IA,VX,side,ver] = parse(p,SX,SA,varargin) versions = enumeration('MagicFormulaVersion'); - isValidVersion = @(x) mustBeMember(x, versions); - isValidNumericVector = @(x) isnumeric(x) && isvector(x); - isValidTyreSide = @(x) mustBeMember(x, [0, 1]); + isVersion = @(x) mustBeMember(x, versions); + isVector = @(x) isnumeric(x) && isvector(x); + isTyreSide = @(x) mustBeMember(x, [0, 1]); + isWithinBounds = @(x,lb,ub) isVector(x) && all(x>lb & x