User`s guide

5 ODE P ara meter Estimation (Grey-Box Modeling)
y Represents the right side(s) of the o utput equation(s). A column vector
with Ny entries.
The le inputs are:
t Current time.
x State vector at time t. For sta t ic models, equals [].
u —Inputvectorattimet. For time-se rie s models, equals [].
p1,p2, ...,p N Parameters, which can be real scalars, column vectors
or two-dimensional matrices.
N is the number of parameter objects. For
scalar parameters,
N is the total number of parameter elements.
FileArgument Contains a uxiliary variables that might be required for
updating the constants in the state equations.
Tip After creating a model le, call it directly from the MATLAB software
with reasonable inputs and verify the output values.
For an example of creating grey-box model les a nd idnlgr ey model object,
see the demo Creating idnlgrey Model F iles.
Constructing the idnlgrey Object
After you create the M-le or MEX-le with your model structure, you must
dene an
idnlgrey object. This object s hares many of the properties of the
linear
idgrey model object.
Use the following syntax to dene the
idnlgrey model object:
m = idnlgrey('filename',Order,Parameters,InitialStates)
The id nlgr ey arguments are dened as follows:
'filename' —NameoftheM-le or MEX-le storing the mode l structure.
This le must be on the MATLAB path when you use this model object for
model estimation , pred icti on , or simulation .
5-18