isBounded

Purpose

Test if a polyhedron is bounded.

Syntax

tf = P.isBounded
tf = isBounded(P)

Description

Return true if the polyhedron ../../../../../../fig/mpt/modules/geometry/sets/@Polyhedron/isbounded1.png is bounded and false otherwise.

Input Arguments

P

Polyhedron in any format

Class: Polyhedron

Output Arguments

tf

true if the polyhedron ../../../../../../fig/mpt/modules/geometry/sets/@Polyhedron/isbounded2.png is bounded and false otherwise.

Class: logical

Allowed values:

  • true
  • false

Example(s)

Example 1

Bounded polyhedron:
Polyhedron('V', randn(30,5)).isBounded
ans =

     1

Unbounded polyhedra:
Polyhedron('V', randn(30,5), 'R', randn(2,5)).isBounded
ans =

     0

Polyhedron('H', [rand(30,5) ones(30,1)], 'He', [randn(1,5) 0]).isBounded
ans =

     0

See Also

isemptyset, isfulldim, isbounded


© 2010-2013 Colin Neil Jones: EPF Lausanne, colin.jones@epfl.ch