How to set a script as startup shortcut for Simulink project programmatically?

조회 수: 3 (최근 30일)
In MATLAB R2017a, is it possible to set a script as startup shortcut for Simulink project programmatically? I can do the same using Simulink project GUI by selecting Set Shortcut Action > Startup from context menu for the shortcut.
I have a process that generates Simulink project and want a way to switch to a specific directory in the project when the project is launched. I tried using RunAtStartup property only to find out that it is read-only.
Any pointers?
  댓글 수: 1
Sunny Talekar
Sunny Talekar 2019년 3월 4일
R2017b and higher versions seem to have addStartupFile() command line option which might be what I'm looking for... but for R2017a

댓글을 달려면 로그인하십시오.

답변 (1개)

Abhishek Singh
Abhishek Singh 2019년 3월 7일
  댓글 수: 1
Sunny Talekar
Sunny Talekar 2019년 3월 7일
The Simulink project is auto-generated via CI. I'm looking for a way to set up the start up action during the auto-generation process so that when users get it from server they can just launch the project and it would set up everything in MATLAB. I don't want users to make any changes to the project manually.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Dependency Analysis에 대해 자세히 알아보기

제품


릴리스

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by