SIMPLOT

Simulates the dynamical system and plots time evolution of states and inputs.

Contents

Method of pwaSystem object.

Description

This method allows to simulate the dynamical system by iterating the map starting from an initial state $x_0$ and given a PWA control function as input. The PWA control function can derive from an explicit MPC control law or by an approximated PWA controller. The time evolution of the state and input variables is also plotted (if the sampling time of the system is available, the x axis of the plot displays the actual time; else just the iteration number). If the number of state variables is 2 or 3 also the state trajectory is plotted.

Syntax

[X U] = simplot(object,x0,N,PWAobject)

x0 is the initial condition, N is the number of iterations of the map and PWAobject is one of the objects defining a PWA function available in the toolbox (pwag, pwas, pwar). The outputs X and U are matrices whose columns are the state and input variables, respectively, at each iteration of the map.

Acknowledgements

Contributors:

Copyright is with: