Home > mpt > extras > graphics > mpt_plotellip.m

# mpt_plotellip

## PURPOSE

mpt_PLOTELLIP function to plot polytopes

## SYNOPSIS

function [xe,ye]=mpt_plotellip(A,b,c,linetype)

## DESCRIPTION

```mpt_PLOTELLIP function to plot polytopes

[xe,ye]=mpt_plotellip(A,b,c,linetype)

---------------------------------------------------------------------------
INPUT
---------------------------------------------------------------------------
There are two ways to call the function:

plotellip(A,xc)           plots ellipsoid (x-xc)*A*(x-xc) = 1 in R^2, or
OR
plotellip(A,b,c)          plots ellipsoid x'*A*x + b'*x + c = 0 in R^2

linetype                  optional field used for plotting```

## CROSS-REFERENCE INFORMATION

This function calls:
• plot PLOT Plots regions of the explicit controller
• end END Returns the last element in a given polytope array
• plot PLOT Plots polytopes in 2D or 3D
This function is called by:
• getInnerEllipsoid GETINNERELLIPSOID Computes the largest ellipsoid inscribed in a polytope
• getOutterEllipsoid GETOUTTERELLIPSOID Computes the smallest ellipsoid which covers the polytope P
• mpt_getInnerEllipsoid MPT_GETINNERELLIPSOID Computes the largest ellipsoid inscribed in a polytope
• mpt_getOutterEllipsoid MPT_GETOUTTERELLIPSOID Computes the smallest ellipsoid which covers the polytope P

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