Horizontal concatenation for convex set objecs.
S = [S1, S2]
S = horzcat(S1,S2)
S1 |
Any object derived from the ConvexSet class, e.g. Polyhedron, YSet, ... Class: ConvexSet |
S2 |
Any object derived from the ConvexSet class that is of the same type as S1. Class: ConvexSet |
S |
The array of the convex sets. Class: ConvexSet |
x = sdpvar(1);
S1 = YSet(x,[x<=1]);
S2 = YSet(x,[x>=2]);Horizontal concanation gives an array with 2 elements
S = [S1, S2]
Array of 2 YSets.
x = sdpvar(2,1);
S = YSet(x, [0.5*x(1)-4*x(2)<=1]);Define Polyhedron object
P = Polyhedron([1 0; -1 -1]);Concatenation of YSet and Polyhedron is not allowed
[S, P]
Only the same sets can be concatenated.
◀ | isemptyset | removefunction | ▶ |
© 2010-2013 Martin Herceg: ETH Zurich, herceg@control.ee.ethz.ch