"Duplicate directory name" Bug at Startup

It all started when I opened MatLab to find that the startup folder had been cleared (it opened in C:\Windows\system32) and my path had been defaulted. No idea why. Then I changed the startup folder with
userpath('C:\Users\Joe\Documents\MATLAB')
I restarted MatLab and it went to this startup folder fine. Then I added one of my folders to the path with the Set Path dialog box. I closed and started up MatLab again. This time MatLab gave the warning
Warning: Duplicate directory name: C:\Users\Joe\Documents\MATLAB.
I tried using the fix at http://www.mathworks.com/support/bugreports/363196, but with no change.
Any ideas what is going on?

回答 (2 件)

Aurelien Queffurust
Aurelien Queffurust 2011 年 7 月 22 日

1 投票

1 件のコメント

Joe
Joe 2011 年 7 月 22 日
I did tried this solution also. The warning stopped appearing, but resumed after I added a folder to the path. The first time I encountered this problem on a separate machine, the 363196 solution worked, but not this time.

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

Ryan
Ryan 2017 年 6 月 6 日

0 投票

Try this (where PATH is a string of your path):
rmpath PATH savepath userpath PATH
This will make your startup directory PATH, while making it the first directory in the MATLAB path.

カテゴリ

ヘルプ センター および File ExchangeStartup and Shutdown についてさらに検索

製品

質問済み:

Joe
2011 年 7 月 21 日

回答済み:

2017 年 6 月 6 日

Community Treasure Hunt

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

Start Hunting!

Translated by