simulate
Purpose
Simulates evolution of the system
Syntax
data = system.simulate(U)
Description
data = system.simulate(U) computes evolution of system's
states and outputs, starting from the system's internal state and
using a sequence of inputs U.
Each column of U is interpreted as the control action to
use at the m-th step of the simulation. The total number of
simulation steps is given by the number of columns
of U. To simulate an autonomous system over M
steps, you need to define U=zeros(0, M).
This function returns a structure data, which contains
the simulated evolution of system's states (in data.X)
and the outputs (in data.Y), respectively.
Note that you should always run system.initialize(x0) to
set the initial condition prior to running the simulation.
Also note that the simulate method updates the internal
system's state. Therefore once the function completes, the
internal state will be set to the final value obtained at the end
of the simulation.
Input Arguments
U |
Matrix of control inputs stored column-wise for each
simulation step.
Class: double
|
Output Arguments
data |
Structure with simulated state and output profiles.
Class: struct
|
© 2003-2013 Michal Kvasnica: STU Bratislava, michal.kvasnica@stuba.sk