Main Content

renameReferences

R2026b

Rename symbol and update references to symbol name

Since R2023a

Description

renameReferences(symbol,newName) changes the name of symbol to newName and updates the references to the symbol name in the chart. Symbols include Stateflow.Data, Stateflow.Event, Stateflow.Message, and other Stateflow® objects that have a Name property.

example

Examples

Input Arguments

collapse all

New name for the symbol, specified as a string scalar or a character vector.

Limitations

  • The functions getReferences and renameReferences do not find or update references to exported functions in other charts, atomic subcharts, or Function Caller (Simulink) blocks.

Version History

Introduced in R2023a