Creating custom model advisor checks for Stateflow

1 Ansicht (letzte 30 Tage)
John Fiaschetti
John Fiaschetti am 6 Feb. 2023
Kommentiert: John Fiaschetti am 7 Feb. 2023
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!

Akzeptierte Antwort

Fangjun Jiang
Fangjun Jiang am 7 Feb. 2023
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 Kommentar
John Fiaschetti
John Fiaschetti am 7 Feb. 2023
Thanks Fangjun! It was not clear in the documentation to me, but now I understand.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu MAB Modeling Guidelines finden Sie in Help Center und File Exchange

Produkte


Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by