Is there a way to get the abstract syntax tree of a Simulink Model from the Simulink Code Inspector?
Show older comments
Reading this blog post on the Simulink Code Inspector, it looks like the AST is being created for the Simulink model. Is there an exposed API or other method of extracting the generated AST for an arbitrary Simulink/Stateflow model?
I realize I can run the code gen and get the AST from the C code, but I am looking to get the AST representing the Simulink Model directly, not from the generated C code.
Answers (1)
Pat Canny
on 5 May 2026
0 votes
Apologies for the extremely dated reply. To "close this one out", I just wanted to say this is not supported.
Categories
Find more on Simulink Code Inspector in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!