removeAllFunctions

Purpose

Remove all functions that are associated to this union of polyhedra.

Syntax

U = U.removeAllFunctions
U = removeAllFunctions(U)

Description

Removes all Function objects associated to this union of polyhedra.

Input Arguments

U

Object of the PolyUnion class that holds polyhedra in the same dimension.

Class: PolyUnion

Output Arguments

U

Modified object of PolyUnion class without the function handles.

Class: PolyUnion

Example(s)

Example 1

Create three polyhedra and two functions to each one of them.
 for i=1:3, P(i)=ExamplePoly.randHrep; end

 P.addFunction(AffFunction([-1,5],-1/8),'affine_function'); 

 P.addFunction(QuadFunction(eye(2),[-2,4],0.6),'quadratic_function'); 
 Create the union of polyhedra 
 U = PolyUnion(P) 
PolyUnion in the dimension 2 with 3 polyhedra.
Functions : 2 attached "affine_function", "quadratic_function"
Remove all functions handles from the union
 U.removeAllFunctions 
PolyUnion in the dimension 2 with 3 polyhedra.
Functions : none

See Also

addfunction, removefunction


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