Validators
Validators
Description
validators functions
mustBeA - Checks that input value comes from one of specified classes.
mustBeColumn - Checks that value is a column vector or raise an error.
mustBeFile - Checks that input path refers to file.
mustBeFinite - Checks that value is finite or raise an error.
mustBeFloat - Checks that value is floating-point or raise an error.
mustBeFolder - Checks that input path refers to folder.
mustBeGreaterThan - Checks that value is greater than another value or issue error.
mustBeGreaterThanOrEqual - Checks that value is greater than or equal to another value or issue error.
mustBeInRange - Checks that value is in the specified range.
mustBeInteger - Checks that value is integer or raise an error.
mustBeLessThan - Checks that value is less than another value or issue error.
mustBeLessThanOrEqual - Checks that value is less than or equal to another value or issue error.
mustBeLogical - Checks that value is logical or raise an error.
mustBeLogicalScalar - Checks that value is logical scalar or raise an error.
mustBeMatrix - Checks that value is a matrix or raise an error.
mustBeMember - Checks that value is member of specified array or issue error.
mustBeNegative - Checks that value is negative or raise an error.
mustBeNonNan - Checks that value is not NaN.
mustBeNonSparse - Checks that value is not sparse.
mustBeNonZero - Checks that value is not zero.
mustBeNonempty - Checks that value is nonempty or raise an error.
mustBeNonmissing - Checks that value is not missing.
mustBeNonnegative - Checks that value is nonnegative or raise an error.
mustBeNonpositive - Checks that value is non positive or raise an error.
mustBeNonzeroLengthText - Checks that value is text with nonzero length or raise an error.
mustBeNumeric - Checks that value is numeric or raise an error.
mustBeNumericOrLogical - Checks that input is numeric or logical.
mustBePositive - Checks that value is positive or raise an error.
mustBeReal - Checks that value is real.
mustBeRow - Checks that value is a row vector or raise an error.
mustBeScalarOrEmpty - Checks that value is scalar or empty or raise an error.
mustBeText - Checks that value is piece of text or raise an error.
mustBeTextScalar - Checks that value is single piece of text or raise an error.
mustBeValidVariableName - Checks that value is valid variable name or raise an error.
mustBeVector - Checks that value is vector or raise an error.
Last updated