This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.


MPC property values


Value = get(MPCobj,PropertyName)
Struct = get(MPCobj)


Value = get(MPCobj,PropertyName) returns the current value of the property PropertyName of the MPC controller MPCobj. Specify PropertyName as a character vector or string that contains the full property name (for example, 'UserData') or any unambiguous case-insensitive abbreviation (for example, 'user'). You can specify any generic MPC property.

Struct = get(MPCobj) converts the MPC controller MPCobj into a standard MATLAB® structure with the property names as field names and the property values as field values.

get(MPCobj) without a left-side argument displays all properties of MPCobj and their values.


An alternative to the syntax

Value = get(MPCobj,'PropertyName')

is the structure-like referencing

Value = MPCobj.PropertyName

For example,


return the values of the sampling time and prediction horizon of the MPC controller MPCobj.

See Also


Introduced before R2006a

Was this topic helpful?