isBounded

Purpose

Test if the union is built from bounded polyhedra.

Syntax

ts = U.isBounded
ts = isBounded(U)

Description

Return true if all polyhedra in the union U are bounded and false otherwise. Once this method has been called, the information about the boundedness can be retrieved from U.Internal.Bounded property.

Input Arguments

U

Union of polyhedra in the same dimension.

Class: PolyUnion

Output Arguments

ts

True if all polyhedra in the union are bounded and false otherwise.

Class: logical

Allowed values:

  • true
  • false

Example(s)

Example 1

Union of bounded and unbounded:
P(1) = Polyhedron('V',randn(5,2));

P(2) = Polyhedron('V',randn(5,2),'R',[0 1]); 
 Create union 
 U = PolyUnion(P) 
PolyUnion in the dimension 2 with 2 polyhedra.
Functions : none
Check if the union is bounded
 U.isBounded 
ans =

     0

The boundedness property can be retrieved from
 U.Internal.Bounded 
ans =

     0

See Also

isconvex, isoverlapping, isconnected, isfulldim


© 2010-2013 Martin Herceg: ETH Zurich, herceg@control.ee.ethz.ch