Home > hit > auxiliary > hit_pwa.m

hit_pwa

PURPOSE ^

HIT_PWA Evaluate a PWA function.

SYNOPSIS ^

function [y,region]=hit_pwa(theta,regions,point)

DESCRIPTION ^

HIT_PWA Evaluate a PWA function.

 -------------------------------------------------------------------------
 DESCRIPTION
 -------------------------------------------------------------------------

 [y,region]=hit_pwa(theta,regions,point)
 
 -------------------------------------------------------------------------
 INPUT
 -------------------------------------------------------------------------
 theta{i}: PV of the i-th mode.

 regions(i): polyhedron describing the region of the i-th mode. 

 point: vector describing the point at which the map will be evaluated (it
 can be either a row or a column).
 
 -------------------------------------------------------------------------
 OUTPUT                                                                                                   
 -------------------------------------------------------------------------
 y: value of the PWA map. It is NaN if the point does not fall in at least
 one region. This allows one to skip the point when using plot or plot3.

 region: number of the region the point belongs to. It is NaN if the point
 does not fall in at least one region.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Thu 01-Dec-2005 10:54:38 by m2html © 2003