How to get Symbols list of stateflow chart through command window

3 次查看(过去 30 天)
Hi,
I wanted to get the chart 'Symbol List' through Command Window.
Please help me.

回答(1 个)

Divyajyoti Nayak
Divyajyoti Nayak 2024-12-24
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

类别

Help CenterFile Exchange 中查找有关 Stateflow Programmatic Interface 的更多信息

标签

产品


版本

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by