Convert Simulink to m file
Ältere Kommentare anzeigen
A lot (or most or all?) of the configuration of a simulink file can be done programmatically. Is there a way to convert an existing simulink slx file into an m file that contains all (important) steps necessary to build the slx file? I do not care so much about the visual documentation that the simulink file inherently comes with (routing of signals, position of blocks). So, an m file containing all commands to build an slx file is enough for me. The advantage would be that one can more easily track the text-based m file in programs like git (I am aware that there are ways to track simulink files as well but I prefer text-based files).
Akzeptierte Antwort
Weitere Antworten (1)
Kiran Kintali
am 21 Apr. 2024
1 Stimme
Correction in the above thread / Accepted Ansswer.
Simulink Coder and embedded Coder products support C, C++ code generation from Simulink.
However, MATLAB Coder and HDL Coder products directly support code generation C, C++ and VHDL/Verilog/SystemVerilog directly from MATLAB without requiring to model your algorithm graphically in Simulink.
Kategorien
Mehr zu Code Generation finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!