Startup actions prior to MATLAB project open

조회 수: 6 (최근 30일)
Isaac De La Cruz
Isaac De La Cruz 2025년 4월 23일
댓글: Isaac De La Cruz 2025년 5월 7일
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?

채택된 답변

Snehal
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 CenterFile Exchange에서 Using MATLAB Projects in Simulink에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by