필터 지우기
필터 지우기

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 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