removeAllFunctions

Purpose

Remove all functions that are associated to this union of convex sets.

Syntax

U = U.removeAllFunctions
U = removeAllFunctions(U)

Description

Removes all Function objects associated to this union.

Input Arguments

U

Object of the Union class that holds objects derived from ConvexSet class.

Class: Union

Output Arguments

U

Modified object of Union class without the function handles.

Class: Union

Example(s)

Example 1

Create union of two polyhedra given by Yalmip constraints.
 x = sdpvar(3,1); 

 F1=[randn(12,3)*x<=ones(12,1)];

 F2=[randn(12,3)*x<=ones(12,1)];

 Y(1) = YSet(x,F1); 

 Y(2) = YSet(x,F2); 
 Add function handles to each set. 
 for i=1:2, 
                Y(i).addFunction(AffFunction(randn(1,3)),'a');
                Y(i).addFunction(AffFunction(randn(1,3)),'b');
              end
        
 Create the union of polyhedra 
 U = Union(Y) 
Union of 2 convex sets.
Functions : 2 attached "a", "b"
Remove all functions handles from the union
 U.removeAllFunctions 
Union of 2 convex sets.
Functions : none

See Also

addfunction, removefunction


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