Documentation Center

  • Trial Software
  • Product Updates

setname

Set I/O signal names in MPC prediction model

Syntax

setname(MPCobj,'input',I,name)
setname(MPCobj,'output',I,name)

Description

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. 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. 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.

See Also

| |

Was this topic helpful?