Is it possible to generate a Matlab script from a Simulink model?
24 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hawkeye
am 8 Mär. 2024
Kommentiert: Walter Roberson
vor etwa 24 Stunden
Matlab provides a method for programmatically modifying or generating Simulink models ( https://www.mathworks.com/help/simulink/ug/approach-modeling-programmatically.html ).
I have a large collection of Simulink models that I would like to convert into scripts which, when executed, would then re-generate the orginal (or functionally equivalent) model. In effect, I want a way to seemlessly convert between .slx files and a text-based representation. Does Matlab provide a utility that does this?
4 Kommentare
Walter Roberson
vor etwa 6 Stunden
Indeed, .mdl file format is still supported (as of R2025b.) And that might satisfy the need as expressed by @Richard Crozier . It is not really clear to me, though, whether or not that would satisfy the original request by @Hawkeye
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Simulink Environment Customization finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!