For those of you that might be using Matlab R2007 (this may also apply to R2006), there is a bug which means if you start Matlab for the second time in a session (a session is defined as the time between OS reboots), at start-up Matlab gets stuck in the initialisation phase. You can quit with CTRL+C, but none of the paths are set and cannot be manually set from the command line rendering MATLAB useless. The only way to get around this is to reboot your OS and try again.
Having endlessly struggled with this I have a work around:
- Close Matlab.
- Navigate to the Matlab root installation directory (by default C:\Program Files\MATLAB on Windows, and /usr/local/matlab on Linux).
- Navigate to the toolbox > local folder.
- Open userpath.m in a text editor.
- Edit the following lines (there are two of them, edit both):
Change to:
- Save the userpath.m file.
Problem fixed, and so simple.
Hope this helps some who have experienced this issue.
Dave
Having endlessly struggled with this I have a work around:
- Close Matlab.
- Navigate to the Matlab root installation directory (by default C:\Program Files\MATLAB on Windows, and /usr/local/matlab on Linux).
- Navigate to the toolbox > local folder.
- Open userpath.m in a text editor.
- Edit the following lines (there are two of them, edit both):
Rich (BB code):
[rc p] = dos('startdir $documents\MATLAB' -a);
Rich (BB code):
[rc p] = dos('startdir $documents\MATLAB');
Problem fixed, and so simple.
Hope this helps some who have experienced this issue.
Dave