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