Plotting the Result

When a discrete equivalent has been found and/or a control law has been computed it is nice to be able to visualise the result. For this purpose two plot functions are included in the toolbox.


Plots discrete equivalents of a simplex with state spaces of dimension 2. The facet are color coded according to if they are blocked, opened or uncotrollable.


Performs a monte-carlo simulation of a control law applied to an affine system. The initial conditions for the simulations are uniformly distributed in the state space polytope.

Plotting and Simulation
%de is a discrete equivalent of the prepared simplex s and ct is the control parameters for exiting facet 2.

%plot the discrete equivalent marking facet 2 as exit

%plot a monte-carlo simulation of the control to exit facet 2
%Note that this is plottet on top of the discrete equivalent