- https://www.mathworks.com/help/matlab/matlab_prog/automate-startup-and-shutdown-tasks.html
- https://www.mathworks.com/help/matlab/ref/startup.html
Startup actions prior to MATLAB project open
7 次查看(过去 30 天)
显示 更早的评论
I understand that MATLAB project startup routine runs after all the project references have been processed and configured.
Is there a way how I can register/execute a startup routine that runs before the project references?
0 个评论
采纳的回答
Snehal
2025-4-25
I understand that you want to register/execute a startup routine that runs before the project references.
MATLAB Projects currently only support startup and shutdown scripts that run after project references are loaded. There is no built-in "pre-startup" hook.
However, you can implement the same using a custom script. To do so, open the project via a custom script that performs the steps/checks you want to execute. Using this approach instead of double-clicking the .prj file directly will execute the custom script before loading the project references.
Please refer to the following documentation links for more information:
Hope this helps!
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Using MATLAB Projects in Simulink 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!