mustBeReal
Validate that value is real
Syntax
Description
mustBeReal( throws an error if value)value is not a real number. This function does not return a value.
mustBeReal calls the following function to determine if the input is real:
Class support: All numeric classes, logical, and MATLAB® classes that overload isreal.
This function ignores input arguments that are empty values. Therefore, no error is thrown when the property or function argument value is empty.
Examples
Input Arguments
Tips
mustBeRealis designed to be used for property and function argument validation.
Extended Capabilities
Version History
Introduced in R2017a