필터 지우기
필터 지우기

Update Path Externally

조회 수: 1 (최근 30일)
Cesare
Cesare 2011년 4월 13일
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

답변 (3개)

Fangjun Jiang
Fangjun Jiang 2011년 4월 13일
edit pathdef.m

Kaustubha Govind
Kaustubha Govind 2011년 4월 21일
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 2011년 4월 19일
I was a bit scared of the big warning telling not to edit it.
  댓글 수: 1
Fangjun Jiang
Fangjun Jiang 2011년 4월 21일
Not if you do it right.

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

카테고리

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

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by