Documentation

This is machine translation

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

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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

Was this topic helpful?