param.State
Specify tuning parameters for model states
Description
A state parameter is a numeric parameter, representing a state associated with a model, that can take any value in a specified interval. The parameter can take scalar or matrix values.
You use state parameters to estimate or specify the initial state values of a model.
Creation
Create a state parameter object in one of the following ways.
sdo.getStateFromModel
to create objects corresponding to the state of a specified block in a Simulink® model. For an example, see Get State Parameters from Model.param.State
function.
Description
creates an unnamed
scalar state with its s
= param.StateValue
property set to
0
. The remaining properties of the object have default
values.
creates a
scalar state, sets the s
= param.State(statepath)Name
property to
statepath
, and sets the Value
property to 0
.
creates a state, sets the s
= param.State(statepath,value)Name
property to
statepath
, and sets the Value
property to value
.
To change a property value after you create the object, use dot notation. For example:
s = param.State; s.dxFree = false;
Properties
Examples
Alternatives
Version History
Introduced in R2012b