Main Content

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

See Also

| |

Introduced before R2006a