Set I/O signal names in MPC prediction model
setname(MPCobj,'input',I,name)
setname(MPCobj,'output',I,name)
setname(MPCobj,'input',I,name)
changes the name of the
I
th input signal to name
. This is equivalent
to MPCobj.Model.Plant.InputName{I}=name
. Specify
name
as a character vector or string. Note that
setname
also updates the read-only Name
fields of MPCobj.DisturbanceVariables
and
MPCobj.ManipulatedVariables
.
setname(MPCobj,'output',I,name)
changes the name of the
I
th output signal to name
. This is equivalent
to MPCobj.Model.Plant.OutputName{I} =name
. Specify
name
as a character vector or string. Note that
setname
also updates the read-only Name
field of MPCobj.OutputVariables
.
Note
The Name
properties of ManipulatedVariables
,
OutputVariables
, and DisturbanceVariables
are read-only. You must use setname
to assign signal names, or
equivalently modify the Model.Plant.InputName
and
Model.Plant.OutputName
properties of the MPC object.