createSimulator
Create simulation object from experiment to compare measured and simulated data
Syntax
sim_obj =
createSimulator(experiment)
sim_obj =
createSimulator(experiment,sim_obj0)
Description
creates
a sim_obj
=
createSimulator(experiment
)sdo.SimulationTest
object
to simulate a model using the parameters and inputs specified in an
experiment. You compare the simulated and measured outputs. sim_obj
specifies
the model stop time as the end time of the longest running experiment
output signal.
updates
the values of the sim_obj
=
createSimulator(experiment
,sim_obj0
)Parameters
, InitialStates
, Input
and LoggingInfo
properties
of the sdo.SimulationTest
object, sim_obj0
.
It does so using the corresponding properties specified by experiment
. sim_obj0.ModelName
must
be the same as experiment.ModelName
. You use
this syntax to avoid creating a simulation scenario object (sdo.SimulationTest
object) repeatedly
and, instead, modify an existing simulation scenario object.
Input Arguments
|
Experiment, specified as an |
|
Simulation scenario, specified as an Typically, you use the |
Output Arguments
|
Simulation scenario, returned as an The properties of When you use the syntax |