Multiply two polyhedra, or a polyhedron with a matrix or scalar.
Q = P*S
Q = M*P
Q = a*P
Q = P*a
P |
Polyhedron in any format Class: Polyhedron |
S |
Polyhedron in any format Class: Polyhedron |
M |
Matrix of size ![]() Class: double matrix |
a |
Scaling factor Class: double |
Q |
Polyhedron: Either ![]() ![]() ![]() Class: Polyhedron |
P = Polyhedron('V',[-1;0]);
S = Polyhedron('V',[1;2]);
plot([P S],'linewidth',2,'color','b'); hold on; plot(P*S); axis([-2 3 -2 3]);
P = Polyhedron('lb',-[1;1],'ub',[1;1]);
Q = randn(3,2)*P;
plot([P Q]);
P = ExamplePoly.poly3d_sin;
plot([1.5*P P P*0.5]);
[1] Fukuda: PolyFaq
◀ | isbounded | computevrep | ▶ |
© 2010-2013 Colin Neil Jones: EPF Lausanne, colin.jones@epfl.ch