Main Content

isreal

Determine if parameter value, minimum, and maximum are real

Syntax

isreal(param_obj)

Description

isreal(param_obj) returns true (1) if the Value, Minimum, and Maximum properties of param_obj are all real.

Input Arguments

expand all

The method evaluates the param.Continuous object param_obj and determines the parameter value, minimum, and maximum are real.

Examples

expand all

p = param.Continuous('K',eye(2));
isreal(p)
ans = logical
   1

Because the Value, Minimum, and Maximum properties of all parameters in p are real, isreal returns 1.