"Duplicate directory name" Bug at Startup
Mostrar comentarios más antiguos
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.
Any ideas what is going on?
Respuestas (2)
Aurelien Queffurust
el 22 de Jul. de 2011
1 voto
As you have tried the bug report 363196, try also this solution :
1 comentario
Joe
el 22 de Jul. de 2011
Ryan
el 6 de Jun. de 2017
0 votos
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.
Categorías
Más información sobre Startup and Shutdown en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!