Home > mpt > extras > auxiliary > unitbox.m

unitbox

PURPOSE

UNITBOX Creates a unit box centered at origin

SYNOPSIS

function P=unitbox(dimension, boxsize)

DESCRIPTION

```UNITBOX Creates a unit box centered at origin

P=unitbox(dimension, boxsize)

---------------------------------------------------------------------------
DESCRIPTION
---------------------------------------------------------------------------
Creates a unit box (hypercube) of dimension 'dimension' centered at origin
with size 'boxsize'

i.e. returns a polytope
P=polytope([eye(dimension); -eye(dimension)], boxsize*ones(2*dimension,1))

---------------------------------------------------------------------------
INPUT
---------------------------------------------------------------------------
dimension  - dimension of hypercube
boxsize    - size of the box (Optional, if not given, we assume 1)

---------------------------------------------------------------------------
OUTPUT
---------------------------------------------------------------------------
P     - hypercube in H-representation

CROSS-REFERENCE INFORMATION

This function calls:
• dimension DIMENSION Returns dimension of the given polytope
• end END Returns the last element in a given polytope array
• polytope POLYTOPE Default constructor for the POLYTOPE object
This function is called by:
• lt LT Checks if polytope P is a strict subset of polytope Q
• Double_Integrator_addU DOUBLE_INTEGRATOR_ADDU 2nd order LTI example with additive uncertainty
• ThirdOrder_addU THIRDORDER_ADDU 3rd order LTI example with additive uncertainty
• two_tanks TWO_TANKS 2nd order PWA example
• ownmpc8
• softconstr1
• reachdemo1 reachability computation demo
• reachdemo2 reachability computation demo
• verifdemo1 verification demo
• verifdemo2 verification demo
• mpt_mplp_ver1 MPT_MPLP Explicitly solves the given linear program (LP)
• mpt_mplp_ver7 MPT_MPLP Explicitly solves the given linear program (LP)
• mpt_norm2pwa MPT_NORM2PWA transformes a linear norm into an equivalent PWA fcn representation
• sub_computeTrajectory sub_COMPUTETRAJECTORY Calculates time evolution of state trajectories subject to control
• mpt_pwa2sys MPT_PWA2SYS Converts structure generated by hys2pwa.m to a sysStruct structure
• mpt_boolMinTime MPT_BOOLMINTIME Computes minimum time controller for systems with discrete inputs
• hull HULL Converts vertices/polytope array into an H-representation polytope
• mpt_delaunay MPT_DELAUNAY Computes the delaunay triangulation of a polytope
• mpt_voronoi MPT_VORONOI Computes the voronoi diagram via mpLP
• mpt_computeTrajectory MPT_COMPUTETRAJECTORY Calculates time evolution of state trajectories subject to control

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