主要内容

getReferences

R2026b

Identify references to symbol name

Since R2023a

Description

references = getReferences(symbol) returns an array of Stateflow.SymbolReference objects that indicate where the chart refers to a symbol name. For example, a Stateflow.SymbolReference object can correspond to a state or transition action that includes the symbol name. Symbols include Stateflow.Data, Stateflow.Event, Stateflow.Message, and other Stateflow® objects that have a Name property.

example

Examples

Input Arguments

collapse all

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