Update Path Externally
Show older comments
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
Answers (3)
Fangjun Jiang
on 13 Apr 2011
1 vote
edit pathdef.m
Kaustubha Govind
on 21 Apr 2011
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;"
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!