Why do I receive a "Directory access failure" warning when launching MATLAB?
21 ビュー (過去 30 日間)
古いコメントを表示
MathWorks Support Team
2009 年 6 月 27 日
編集済み: MathWorks Support Team
2023 年 12 月 14 日
Why do I receive a "Directory access failure" warning when launching MATLAB?
I added directories to my MATLAB session's search path, and now I receive the following warning when I start MATLAB:
Warning: Directory access failure: a:\work
採用された回答
MathWorks Support Team
2023 年 12 月 5 日
編集済み: MathWorks Support Team
2023 年 12 月 14 日
Causes:
This warning indicates that MATLAB is trying to add directories that seem to exist, but cannot be added to the search path. There are at least two situations when this might occur:
1. If you have added a removable media source, such as the A:\ drive or Z:\ drive.
2. If you have mapped a drive to an uncommon file system, such as the multi-version file system (MVFS) that is often used with ClearCase. Although Windows is case-insensitive, this file system in particular requires you to preserve case-sensitivity instead of making everything lowercase.
Solution:
To resolve the problem, you will need to remove, change, or edit (e.g., to preserve case-sensitivity) the directory name being added. This might be happening with calls to the "cd", "addpath", "path", or "matlabpath" command. There are several places you should look:
1. $MATLAB\toolbox\local\startup.m, where $MATLAB is your root MATLAB location. (There should be no other startup.m files. You can check this by typing "which startup" at the MATLAB command prompt.)
2. $MATLAB\toolbox\local\matlabrc.m.
3. The "Start in" path that you launch MATLAB from. You can check this by right-clicking on the icon that you use to start MATLAB, and choose "Properties". On the Shortcut tab the "Start in" option should not contain the faulty directory.
4. The preferences, which are found under the "File-->Preferences..." menu. Check each of the options for faulty directories.
5. $MATLAB\toolbox\local\pathdef.m. Note that when using the "pathtool" or "path2rc" to save your MATLAB path, MATLAB does not preserve case-sensitivity, and forces all paths to be lowercase. The only way around this is to edit your "pathdef.m" file.
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Startup and Shutdown についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!