Home > mpt > @polytope > pelemfun.m

pelemfun

PURPOSE ^

PELEMFUN Execute the specified function on each element of a polytope array

SYNOPSIS ^

function varargout = pelemfun(funname, Pn, varargin)

DESCRIPTION ^

PELEMFUN Execute the specified function on each element of a polytope array

   PELEMFUN(@FHANDLE, Pn, [X1, ..., Xn]) evaluates a function defined by the
   function handle FHANDLE on all _elements_ of the polytope array Pn.
   Additional input arguments X1, ..., Xn can be specified. Couple of examples:

   E = pelemfun(@extreme, Pn) returns extreme points of all polytopes stored in
   the polytope array Pn as a cell array.

   [X, R] = pelemfun(@chebyball, Pn) returns centers and radii of the chebychev
   ball of each element of Pn.

   B = pelemfun(@bounding_box, Pn, struct('Voutput', 1)); V = [B{:}] returns
   bounding boxes of all elements of Pn converted to a matrix.

   I = pelemfun(@le, Pn, Q) returns a cell array of logical statements with
   true value at position "i" if Pn(i) is a subset of Q.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Thu 30-Mar-2006 10:26:47 by m2html © 2003