Documentation

This is machine translation

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

get

MPC property values

Syntax

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

Description

Value = get(MPCobj,PropertyName) returns the current value of the property PropertyName of the MPC controller MPCobj. The character vector PropertyName can be 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.

More About

collapse all

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.

See Also

|

Introduced before R2006a

Was this topic helpful?