


HIT_PWA_PLOT2D Plot a PWA function with 2D domain.
-------------------------------------------------------------------------
DESCRIPTION
-------------------------------------------------------------------------
minz=hit_pwa_plot2d(theta,regions,regressor_set,x1,x2,fig,color_surface)
-------------------------------------------------------------------------
INPUT
-------------------------------------------------------------------------
theta{i}: PV of the i-th mode.
regions(i): polyhedron describing the region of the i-th mode.
regressor_set: polytope specifying the polytopic domain of the function.
It can be empty if the regions are already bounded.
nfig: # of the figure displaying the plot.
x_lab, y_lab: labels for the x-y axis.
x1,x2: grids of points in the x,y directions, respectively.
fig: number of the figure in which the plot appears.
color_surface: RGB vector defining the color of the PWA surface.
-------------------------------------------------------------------------
OUTPUT
-------------------------------------------------------------------------
minz: minimum of the PWA function.