vertcat

Purpose

Vertical concatenation for convex set objecs.

Syntax

S = [S1; S2]
S = vertcat(S1,S2)

Description

Overloaded method for vertical concatenation of convex sets. It is not possible to concatenate objects of different type to the same array (e.g. Polyhedron and YSet). Similarly, it is not possible to concatenate into matrices, only vectors are allowed.

Input Arguments

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

Output Arguments

S

The array of the convex sets.

Class: ConvexSet

Example(s)

Example 1

We have two sets described in Yalmip.
 x = sdpvar(2,1); 

 S1 = YSet(x,[x(1)-x(2)<=1]); 

 S2 = YSet(x,[-2*x(1)+3*x(2)>=2]); 
 Vertical concanation gives an array with 2 elements 
 S = [S1; S2] 
Array of 2 YSets.

See Also

horzcat


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