How to Check if a Subsytem is a stateflow or not

1 次查看(过去 30 天)
How can I verify if a subsystem is a state-flow or not before continue with my action? With my current code it is finding all the state-flows inside the subsystem. I want to check just the top subsystem is a state-flow or not. Example: objType = get_param('MySybsystemName','Object'); % Get the object of may subsystem Stateflow_Charts = objType.find('-isa','Stateflow.Chart') % Find all the State-flows inside. I just want to cehck if 'MySybsystemName' is a state-flow or not

采纳的回答

Farook Sadarudeen
Below code helps: flgChart = strcmp(get_param(gcs,'SFBlockType'),'Chart');

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Complex Logic 的更多信息

产品


版本

R2014b

Community Treasure Hunt

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

Start Hunting!

Translated by