Plot the union of convex sets.
h = plot(U, 'Prop1', value1, 'Prop2', value2)
h = U.plot('Prop1', value1, 'Prop2', value2)
h = plot(U1, 'Prop1', value1, ..., U2, 'Prop2', value2, ...)
U |
Union object that contains sets derived from the ConvexSet class, e.g. Polyhedron, YSet, ... Class: Union |
Prop1 |
Specification of figure properties. Class: char Allowed values:
|
value1 | Corresponding value to Prop1. |
h |
Handle related to graphics object. Class: handle |
x = sdpvar(2,1);
F = [x(1)<=1; x(2)>=1; 0.2*x'*x <= 0.9];Construct the set
S = YSet(x,F);Construct outer approximation of the set S
B = S.outerApprox;Store the sets inside the union object
U = Union(S); U.add(B)
Union of 2 convex sets. Functions : nonePlot the sets in the Union object with the 0.4 transparency.
U.plot('Alpha',0.4);
Plotting... 30 of 40
◀ | copy | mpt | ▶ |
© 2010-2013 Colin Neil Jones: EPF Lausanne, colin.jones@epfl.ch
© 2010-2013 Martin Herceg: ETH Zurich, herceg@control.ee.ethz.ch