User`s guide

Using Model Output Plots to Validate and Compare Mod els
X0est=findstates(model,data)
Next, specify the e stimated initial states X0est as an arg u m en t in sim or
predict. For example:
y=sim(model,data,'InitialState',X0est )
Command
Description
Exampl e
compare
Plots simulated or
predicted model
output on top of the
measured output.
You should u se
an indepe ndent
validation data set
as input to the model.
To plot ve-step-ahead
predicted output of t h e mo de l
mod against the validation
data
data,usethefollowing
command:
compare(data,mod,5)
Note Omitting the third
argument assumes an
innite horizon and results in
simulation.
sim
Plots simulated model
output only.
To simulate the response of
the model
model using input
data
data,usethefollowing
command:
sim(model,data)
predict
Plots predicted model
output only.
To perform one-step-ahead
prediction of the response for
the model
model and input
data
data,usethefollowing
command:
predict(model,data,1)
8-15