setname
Set I/O signal names in MPC plant model
Description
setname(
changes the name of the mpcobj,'input',i,name)ith input signal in mpcobj
to name. This is equivalent to
mpcobj.Model.Plant.InputName{i}=name, and both commands and also update
the read-only Name field of the corresponding structure in
mpcobj.ManipulatedVariables (if the input is a manipulate variable), or
mpcobj.DisturbanceVariables (if the input is a disturbance
variable).
Examples
Input Arguments
Tips
Note
The Name fields of the variable-related structures in
ManipulatedVariables, OutputVariables, and
DisturbanceVariables in mpcobj 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.
Note
Neither of the Name properties for the signals in
mpcobj affects whether the signal is categorized as a manipulated
variable, measured or unmeasured disturbance, measured or unmeasured output. To change the
signal type you need to either reassign it using setmpcsignal on the
plant object, and recreate the MPC object for that plant, or you need to recreate all the
affected controller signal structures and use set to assign them to the MPC object (not recommended).
Version History
Introduced before R2006a