Why does Matlab keep forgetting my path?

조회 수: 16 (최근 30일)
Todd Welti
Todd Welti 2020년 1월 17일
댓글: Todd Welti 2020년 1월 31일
It seems that since around 3 ro 4 years ago, my current installation of matlab seems to regularly forget the directories I have manually added to the path. Several times i have called tech support and they do some chache clearing, path rebuilding and whatnot, and it is fixed. Then a few months later is is broke again. I can keep fixing it, but wondering why. I never had issues in the 20 years prior!
  댓글 수: 6
Todd Welti
Todd Welti 2020년 1월 18일
I don't remember which version, but I'd say maybe 5 or 6 years ago it started. Never had any issues before that. I'm running W10 now. It is managed by IT, so it has Symantic Endpoint Protection running. not sure if maybe it is doing something. According to my notes, this is what i did to fix it so I could again save the path:
>> restoredefaultpath
>> rehash toolboxcache
>> savepath
Walter Roberson
Walter Roberson 2020년 1월 18일
Historically, using the Add-On Explorer to add on files could result in a corrupt path. That would have been fixed a few releases ago, though.

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

답변 (1개)

Andrew Janke
Andrew Janke 2020년 1월 31일
If I were you, I would give up on setting your path with pathtool or the Matlab GUI (since those try to change the path in the Matlab installation itself) and switch to configuring your path in a user startup.m file. Just stick addpath statements in your startup.m. That'll be more robust and a little "cleaner", since you can share your startup.m between different computers, and it'll work in cases where you don't have write access to the Matlab installation itself.
  댓글 수: 1
Todd Welti
Todd Welti 2020년 1월 31일
Good idea! I used to do that many years ago.

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

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

태그

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by