Additional argument and property validation functions currently absent in MATLAB's standard library.
mustHaveSameSizevalidates that values have the same size.mustBeBinaryvalidates that a value is binary.mustBeDecreasingvalidates that values in a vector are decreasing.mustBeIncreasingvalidates that values in a vector are increasing.mustBeEvenvalidates that a value is even.mustBeOddvalidates that a value is odd.mustHaveCompatibleSizesvalidates that values have compatible sizes.mustBeObjectvalidates that a value is an object of a MATLAB class.mustHaveSameKeysAndTypesvalidates that dictionaries have same types and keys.mustBeEvenPowerOfTwovalidates that a value is an even power of 2.mustBeNaturalPowerOfTwovalidates that a value is a natural power of 2.mustBeAngleInQuadrantvalidates that a value is an angle from a quadrant.mustBeAngleWrappedTovalidates that a value is an angle wrapped to a value.mustBeAxisLimitsvalidates that an input defines axis limits.
The code is tested in MATLAB R2025b, but should work in some older versions as well.