Export Simulink model to script that programmatically creates it

3 visualizaciones (últimos 30 días)
Thomas Marullo
Thomas Marullo el 30 de Mayo de 2023
Respondida: Amit Dhakite el 8 de Jun. de 2023
Is it possible to take a Simulink model and export the code that would programmatically create it? For instance, it would make a script that has
"addblock"
"addline"
"set_param"
etc.

Respuestas (1)

Amit Dhakite
Amit Dhakite el 8 de Jun. de 2023
Hi Thomas,
There is no direct or built-in functionality in Simulink to generate code or script that can regenerate a complete Simulink model.
But, there is a way to generate a Simulink model by using a script. To know more about this, kindly refer to the following MATLAB Answer: https://www.mathworks.com/matlabcentral/answers/378983

Categorías

Más información sobre Programmatic Model Editing en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by