Update Path Externally

Is there a way to add a folder to the Matlab Path without opening Matlab? E.g. if I want to create an installer for a new toolbox so that the user does not have to manually modify the path. Thanks in advance, Cesare

Respuestas (3)

Kaustubha Govind
Kaustubha Govind el 21 de Abr. de 2011

1 voto

If you don't mind MATLAB performing this operation silently, you could use the following system command (MATLAB must be on path):
matlab -nodisplay -nosplash -r "addpath('/path/to/add'); savepath; quit;"
For Windows, see Solution#1-16B8X
Cesare
Cesare el 19 de Abr. de 2011

0 votos

I was a bit scared of the big warning telling not to edit it.

Categorías

Más información sobre Introduction to Installation and Licensing en Centro de ayuda y File Exchange.

Productos

Etiquetas

Preguntada:

el 13 de Abr. de 2011

Community Treasure Hunt

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

Start Hunting!

Translated by