Plot the convex set.
h = plot(Set, 'Prop1', value1, 'Prop2', value2)
h = Set.plot('Prop1', value1, 'Prop2', value2)
Set |
Any object derived from the ConvexSet class, e.g. Polyhedron, YSet, ... Class: ConvexSet |
Prop1 |
Specification of figure properties. Class: char Allowed values:
|
value1 | Corresponding value to Prop1. |
h |
Handle related to graphics object. Class: handle |
x = sdpvar(1);
F1 = [ 0<= x <=3 ];
Y1 = YSet(x,F1);The second set is an intersection of two sets.
F2 = [x <= 1; 0.3*x^2 <= 0.5];
Y2 = YSet(x,F2);Put the sets to an array.
Y = [Y1; Y2];Plot the sets with the dash-dotted line and the size 3.
Y.plot('LineStyle','-.','LineWidth',3);
x = sdpvar(2,1);
F = [x(1) <=1; x(2)>=1; 0.3*x'*x <= 0.5];Construct the set
S = YSet(x,F);Plot the set with with the olive color, half-transparent with circular markings.
S.plot('Color','olive','Alpha',0.5,'Marker','o');
Plotting... 27 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