


MPT_PLOTARRANGEMENT Plots hyperplane arrangement of a polytope in H-representation
P=mpt_plotArrangement(H,K,BBox,Options)
---------------------------------------------------------------------------
DESCRIPTION
---------------------------------------------------------------------------
P=mpt_plotArrangement(H,K,BBox,Options) plots hyperplane arrangement if
1<=dimension(P)<=3 ; Otherwise a projection onto 3D space is plotted. The
initial hyperplanes are given as Hx<=K ;
EXAMPLE:
P=mpt_plotArrangement([eye(3);-eye(3)],ones(6,1));
Options.randcolors=0;
P=mpt_plotArrangement([eye(2);-eye(2)],ones(4,1),unitbox(2,4),Options);
---------------------------------------------------------------------------
INPUT
---------------------------------------------------------------------------
H,K - Hyperplanes Hx <= K
(It is also possible to pass a polytope object H)
BBox - Polytope object defining the outter box
Options - used for plotting ("help plot")
Options.randcolors if set to 1 random colors will be used for the arrangement.
Otherwise the initial polytope will be black and everything
else white.
---------------------------------------------------------------------------
OUTPUT
---------------------------------------------------------------------------
P - Polyarray containing all polytopes of the arrangement
see also PLOT