Is there a danger in renaming a Matlab install folder

1 回表示 (過去 30 日間)
Matt J
Matt J 2020 年 2 月 15 日
コメント済み: Walter Roberson 2020 年 2 月 16 日
I have Matlab R2019b installed under Windows 10 in the usual place,
C:\Program Files\MATLAB\R2019b
but I would now like to rename this folder. I was wondering if there were known dangers in doing so. When I installed Matlab, did anything get configured that makes reference to the original path name, and which will be confused by my renaming it?

採用された回答

Walter Roberson
Walter Roberson 2020 年 2 月 16 日
The registry would have been configured to use that path . You might be able to use the File Association Fix contribution in the File Exchange.
The default path, pathdef.m, would have been configured to use that path. You can often use restoredefaultpath; rehash toolboxcache; savepath to deal with that.
If you have downloaded any contributions using the Add-On Explorer, MATLAB could potentially lose track of them.
  2 件のコメント
Matt J
Matt J 2020 年 2 月 16 日
Thanks, Walter. So far, I've seen no ill-effects, though.
Walter Roberson
Walter Roberson 2020 年 2 月 16 日
On Mac, if I copy MATLAB to another folder (on my SSD) then MATLAB automatically uses the new matlabroot and seems to adjust the path. However I have not yet figured out yet how to tell it to use a different directory to store the add-Ons and the license files, which on Mac get installed in ~/Library/Application Support/Mathworks

サインインしてコメントする。

その他の回答 (1 件)

Muhammad Usama Sharaf SAAFI
Muhammad Usama Sharaf SAAFI 2020 年 2 月 16 日
You should rename this folder (recomended). It may cause some issues when you will use default example given my MATLAB . However making new folder in MATLAB directory for your file will safe.
  1 件のコメント
Walter Roberson
Walter Roberson 2020 年 2 月 16 日
I suspect you meant "you should not"

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by