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

6 visualizaciones (últimos 30 días)
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 comentario
Sunny Talekar
Sunny Talekar el 4 de Mzo. de 2019
R2017b and higher versions seem to have addStartupFile() command line option which might be what I'm looking for... but for R2017a

Iniciar sesión para comentar.

Respuestas (1)

Abhishek Singh
Abhishek Singh el 7 de Mzo. de 2019
  1 comentario
Sunny Talekar
Sunny Talekar el 7 de Mzo. de 2019
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.

Iniciar sesión para comentar.

Categorías

Más información sobre Startup and Shutdown en Help Center y File Exchange.

Productos


Versión

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by