Computes affine hull of a convex set.
He = affineHull(Set)
He = Set.affineHull
Set |
Any object derived from the ConvexSet class, e.g. Polyhedron, YSet, ... Class: ConvexSet |
H |
The real matrix that defines the affine hull. Class: double |
x = sdpvar(2,1);Define a set S using YSet class
opts = sdpsettings('solver','sedumi','verbose',0);
S = YSet(x, [norm(x)<=1; x(1)-x(2)==0.2; [1 -0.5; 0.3, 0.8]*x<=[0.5;0.6]], opts);We can plot the set
S.plot
Plotting... 34 of 40
S.affineHull
ans = -0.70710678116385 0.707106781209245 -0.141421356213361
◀ | getfunction | copy | ▶ |
© 2010-2013 Colin Neil Jones: EPF Lausanne, colin.jones@epfl.ch
© 2010-2013 Martin Herceg: ETH Zurich, herceg@control.ee.ethz.ch