How to get Symbols list of stateflow chart through command window

2 visualizaciones (últimos 30 días)
Nikhil Boddula
Nikhil Boddula el 16 de Jul. de 2019
Respondida: Divyajyoti Nayak el 24 de Dic. de 2024
Hi,
I wanted to get the chart 'Symbol List' through Command Window.
Please help me.

Respuestas (1)

Divyajyoti Nayak
Divyajyoti Nayak el 24 de Dic. de 2024
To get the symbols used in a Stateflow chart programmatically, the ‘find’ function can be used to retrieve an array of ‘Stateflow.Data’ objects of the chart.
data = find(sfroot,"-isa","Stateflow.Data", Path="Model_name/Chart_name");
Here is some documentation for the ‘find’ function and ‘Stateflow.Data’ objects:
  1. ‘find’: https://www.mathworks.com/help/stateflow/api/stateflow.chart.find.html
  2. Stateflow.Data’: https://www.mathworks.com/help/stateflow/api/stateflow.data.html#d126e18743

Categorías

Más información sobre Stateflow Programmatic Interface en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2016b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by