Creating custom model advisor checks for Stateflow

조회 수: 1 (최근 30일)
John Fiaschetti
John Fiaschetti 2023년 2월 6일
댓글: John Fiaschetti 2023년 2월 7일
I am developing a series of custom Model Advisor checks to support my modeling standard. I want to be able to look at the data defined in a state chart to check its type, size, etc. I am not seeing where these properties are available programmatically. The SF API is mainly for creating charts. The get_param and get commands give mostly block attributes, not internals. Is this possible?
Thanks!

채택된 답변

Fangjun Jiang
Fangjun Jiang 2023년 2월 7일
Yes. Use find(xxx, '-isa', 'Stateflow.Data') to find and then get().
web(fullfile(docroot, 'stateflow/api/properties-and-methods-sorted-by-chart-object.html'))
  댓글 수: 1
John Fiaschetti
John Fiaschetti 2023년 2월 7일
Thanks Fangjun! It was not clear in the documentation to me, but now I understand.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MAB Modeling Guidelines에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by