Main Content

isRightBounded

Determine whether a fixed.Interval object is right-bounded

Since R2019b

Description

example

bool = isRightBounded(A) returns a boolean indicating whether the fixed.Interval object A is right-bounded.

Examples

collapse all

Create a fixed.Interval object. Use the isRightBounded function to determine whether the interval is bounded on the right.

interval = fixed.Interval({-pi,pi},{-1,inf});
bool = isRightBounded(interval)
bool = 1x2 logical array

   1   0

The output is logical 1 when the right end of the interval is bounded, and 0 otherwise.

Input Arguments

collapse all

Input fixed.Interval object, specified as a fixed.Interval object, or an array of fixed.Interval objects.

Output Arguments

collapse all

Indicates whether the fixed.Interval object A is right-bounded, returned as a logical value. Returns 0 (false) when A contains inf, and 1 (true) otherwise.

When A is an array of Interval objects, the output is an array of logical values of the same size as A.

Version History

Introduced in R2019b