Is it possible to record, in the form of Matlab code, whatever you do in Simulink?
7 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Miroslav Blagojevic
el 19 de Abr. de 2018
Comentada: Ameer Hamza
el 24 de Abr. de 2018
I am guessing, many people use macro recording in MS Excel in order to simplify writing VB code. Such macros can be used later many times to perform set of actions in Excel files. What I am looking for is very similar; I need to write Matlab code that can create, modify and execute Simulink models. An easy way to do that would be if I create model in Simulink directly, block by block, while “something” records my every step, every setting of block parameters, etc., resulting in an .m file that can recreate what I have done. Is there such functionality in Matlab?
0 comentarios
Respuesta aceptada
Ameer Hamza
el 23 de Abr. de 2018
Yes, this is possible to create a Simulink model from MATLAB command window as shown here: https://www.mathworks.com/help/simulink/ug/approach-modeling-programmatically.html. However, the recommended way to make Simulink model is from Simulink GUI.
2 comentarios
Ameer Hamza
el 24 de Abr. de 2018
Editada: Ameer Hamza
el 24 de Abr. de 2018
In that case, simulink does not support automatic script generation feature. You can either use GUI or write your own script manually.
Más respuestas (1)
Ver también
Categorías
Más información sobre Simulink Coder en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!