フィルターのクリア

How to Check if a Subsytem is a stateflow or not

1 回表示 (過去 30 日間)
Farook Sadarudeen
Farook Sadarudeen 2018 年 6 月 6 日
回答済み: Farook Sadarudeen 2018 年 6 月 6 日
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
  2 件のコメント
Varun Garg
Varun Garg 2018 年 6 月 6 日
編集済み: Varun Garg 2018 年 6 月 6 日
See if the following threads help:
Farook Sadarudeen
Farook Sadarudeen 2018 年 6 月 6 日
Below code helps: flgChart = strcmp(get_param(gcs,'SFBlockType'),'Chart');

サインインしてコメントする。

採用された回答

Farook Sadarudeen
Farook Sadarudeen 2018 年 6 月 6 日
Below code helps: flgChart = strcmp(get_param(gcs,'SFBlockType'),'Chart');

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeComplex Logic についてさらに検索

製品


リリース

R2014b

Community Treasure Hunt

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

Start Hunting!

Translated by