remove

Purpose

Remove set from Union object.

Syntax

U = remove(U,index)
U.remove(index)

Description

Removes the Set from the union based on the index. The elements of the Union object are stored under U.Set property as a cell array. The index must correspond to elements in this array to remove.

Input Arguments

U

The object of the Union class.

Class: Union

index

An index set derived that specifies which sets to remove from the union.

Class: double

Output Arguments

U

Union of the sets.

Class: Union

Example(s)

Example 1

Construct Union object from 3 polyhedra.
P(1) = Polyhedron('ub',-2);

P(2) = Polyhedron('lb',-1,'ub',1);

P(3) = Polyhedron('lb',2);
Create union out of these polyhedra.
 U = Union(P) 
Union of 3 convex sets.
Functions : none
Remove the second polyhedron from the union.
 U.remove(2) 
Union of 2 convex sets.
Functions : none

See Also

union, add


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