Main Content
get
Get property values from MPC object
Description
Use the Model Predictive Control Toolbox™
get
function to read the property values of an MPC controller (see
mpc
for background).
To implement Get/Set interface of standard MATLAB object, see Implement Set/Get Interface for Properties.
returns the current value of the property PropertyValue
= get(mpcobj
,PropertyName
)PropertyName
of the MPC
controller mpcobj
.
Examples
Input Arguments
Output Arguments
Tips
An alternative to the syntax
Value = get(mpcobj,'PropertyName')
is the structure-like referencing
Value = mpcobj.PropertyName
For example,
mpcobj.Ts mpcobj.p
return the values of the sampling time and prediction horizon of the MPC controller
mpcobj
.
Version History
Introduced before R2006a
See Also
Functions
set
|mpcprops
|getname
|setname
|getindist
|getoutdist
|setindist
|setoutdist
|getconstraint
|setconstraint
|getEstimator
|setEstimator
|setterminal
|review
|sim