Simulate response of identified models to arbitrary inputs
returns
the simulated response of an identified model using the input data.
Zero initial conditions are used for all model types except y
= sim(sys
,udata
)idnlgrey
where
the initial conditions stored internally in the model are used.
uses the option set, y
= sim(sys
,udata
,opt
)opt
, to specify simulation
behavior.
sim(___)
plots the simulated
response of the identified model.

Identified model.


Simulation input data. Specify data as an If For timedomain simulation of discretetime systems, If you do not have data from an experiment, use 

Simulation options.


Simulated response. y is an If If For multiexperiment data, 

Estimated standard deviation of the simulated response for linear models.
For nonlinear models, 

Estimated state trajectory for statespace models. Relevant only if

Use simsd
for
a MonteCarlo method of computing the standard deviation of the response.
sim
extends lsim
to facilitate additional features
relevant to identified models:
Simulation of nonlinear models
Simulation with additive noise
Incorporation of signal offsets
Computation of response standard deviation (linear models only)
Frequencydomain simulation (linear models only)
Simulations using different intersample behavior for different inputs
To obtain the simulated response without any of the preceding
operations, use lsim
.