Home > mpt > extras > graphics > mpt_plotArrangement.m

# mpt_plotArrangement

## PURPOSE

MPT_PLOTARRANGEMENT Plots hyperplane arrangement of a polytope in H-representation

## SYNOPSIS

function P=mpt_plotArrangement(H,K,BBox,Options)

## DESCRIPTION

```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

## CROSS-REFERENCE INFORMATION

This function calls:
• length LENGTH Returns number of regions over which the explicit control law is defined
• plot PLOT Plots regions of the explicit controller
• double DOUBLE Function used to access internal properties of the given polytope
• end END Returns the last element in a given polytope array
• length LENGTH Returns number of elements in a polytope array
• plot PLOT Plots polytopes in 2D or 3D
• polytope POLYTOPE Default constructor for the POLYTOPE object
• size SIZE Returns size of the given polytope object
This function is called by:

Generated on Thu 30-Mar-2006 10:26:47 by m2html © 2003