Hi,
Ever since I have installed MATLAB R2009aSV on my Mac (Leopard Version 8) a year ago, I never had any issues with this release. However, yesterday suddenly, MATLAB starts up with the default path with the root as the working directory.
I have tried several times to re-add all the toolboxes, I am using, including the default working directory (i.e., ~/home directory/Matlab/), but in vain. I have even tried to use the rehash-command, but no result. MATLAB still starts up with the default path and root as working directory.
Does anybody have a clue what is going wrong here?
Many thanks in advance for your kind help.
|
|
0
|
|
|
|
Reply
|
Falofolio
|
1/5/2010 8:49:03 AM |
|
Dear Falofolio!
> Ever since I have installed MATLAB R2009aSV on my Mac (Leopard Version 8) a year ago, I never had any issues with this release. However, yesterday suddenly, MATLAB starts up with the default path with the root as the working directory.
>
> I have tried several times to re-add all the toolboxes, I am using, including the default working directory (i.e., ~/home directory/Matlab/), but in vain. I have even tried to use the rehash-command, but no result. MATLAB still starts up with the default path and root as working directory.
You could try:
restoredefaultpath
Any problems in the function startup.m ?
What happend, if you tried to re-add the toolboxes? Are the folders in the path, but vanish after the next restart of Matlab? Or is it impossible to include them in the path?
Good luck, Jan
|
|
0
|
|
|
|
Reply
|
Jan
|
1/5/2010 1:31:21 PM
|
|
"Falofolio " <falofolio@telfort.nl> wrote in message <hhuudv$geh$1@fred.mathworks.com>...
> Hi,
>
> Ever since I have installed MATLAB R2009aSV on my Mac (Leopard Version 8) a year ago, I never had any issues with this release. However, yesterday suddenly, MATLAB starts up with the default path with the root as the working directory.
>
> I have tried several times to re-add all the toolboxes, I am using, including the default working directory (i.e., ~/home directory/Matlab/), but in vain. I have even tried to use the rehash-command, but no result. MATLAB still starts up with the default path and root as working directory.
>
> Does anybody have a clue what is going wrong here?
>
> Many thanks in advance for your kind help.
My guess is you have a problem with write permissions
in the directory it stores the path in.
A simple solution is to just add the relevant directories
to your path in startup.m. This was they will get added
every time you start matlab.
John
|
|
0
|
|
|
|
Reply
|
John
|
1/5/2010 1:48:03 PM
|
|
"Jan Simon" <matlab.THIS_YEAR@nMINUSsimon.de> wrote in message
> You could try:
> restoredefaultpath
Does not help.
> Any problems in the function startup.m ?
MATLAB tells me that it does not exist.
> What happend, if you tried to re-add the toolboxes? Are the folders in the path, but vanish after the next restart of Matlab?
That is exactly what happens, yes!
> Or is it impossible to include them in the path?
No, it is possible to include them.
|
|
0
|
|
|
|
Reply
|
Falofolio
|
1/5/2010 2:12:03 PM
|
|
"John D'Errico" <woodchips@rochester.rr.com> wrote in message
Thanks for replying.
> My guess is you have a problem with write permissions
> in the directory it stores the path in.
I repaired permissions with Disk Utility which indeed solved the problem of not being able to include toolboxes to my path. So, that works again.
> A simple solution is to just add the relevant directories
> to your path in startup.m. This was they will get added
> every time you start matlab.
It appears that I do not have a startup.m. I never needed to create/change one. Should there be a startup.m by default on my system?
|
|
0
|
|
|
|
Reply
|
Falofolio
|
1/5/2010 2:20:21 PM
|
|
Hi,
I was able to solve the issue with a workaround: I had to create a startup script in the package folder of Matlab, which is highly unusual on the Mac-platform as far as I know of.
However, before I did this, I have performed the following actions to try solving the issue, including the ones already mentioned in previous posts/replies:
1.) removing Matlab from the application folder and anything I could find in the library folders and re-install Matlab;
2.) repaired permissions with Disk Utility and for my home folder with Reset Password from the Leopard install DVD.
Both actions did not help. So, in the end, I took the advice proposed here by creating a startup script and put it in '/Applications/MatlabR2009aSV/toolbox/local'. As I wrote above, this is probably a highly unusual solution on the Mac platform.
Anyways, I can work again without having to re-add all my toolboxes I am using for my research.
Bye.
|
|
0
|
|
|
|
Reply
|
Falofolio
|
1/7/2010 9:43:05 AM
|
|
|
5 Replies
185 Views
(page loaded in 0.131 seconds)
|