Borrar filtros
Borrar filtros

Simulink and script error

3 visualizaciones (últimos 30 días)
Felix Subakti
Felix Subakti el 17 de Abr. de 2019
Editada: Mauro Fusco el 17 de Abr. de 2019
How come Everytime to try to open anything in simulink there is an error that says
"Attempts to execute script as function path new_system.m" any ideas how to handle it? Or maybe debugging it?(I never debugged anything before so please do specify every steps)
The version is 2018b, I don't know why the site won't let me chose the version

Respuestas (1)

Mauro Fusco
Mauro Fusco el 17 de Abr. de 2019
Editada: Mauro Fusco el 17 de Abr. de 2019
Probably this script new_system.m is called in the InitFcn or PreLoadFcn of your model (go to Model Explorer ->InitFcn or PreLoad function tabs, note that, if this is the case, then an asterisc will appear on one of them or both (e.g. InitFcn*), or in another of the tabs there: open the tabs with asterisc to check where new_system.m has been typed).
Remove the .m to execute the script (i.e. replace new_system.m, with simply new_system). The error should then disappear, as the script is now executed.

Categorías

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

Community Treasure Hunt

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

Start Hunting!

Translated by