How to get Symbols list of stateflow chart through command window
8 次查看(过去 30 天)
显示 更早的评论
Hi,
I wanted to get the chart 'Symbol List' through Command Window.
Please help me.
0 个评论
回答(1 个)
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: