From: Theophane on 12 May 2010 18:31 I used to have some directory in my path, added through an addpath command in the startup.m file. I removed both this directory, the reference to it in the startup.m, and checked there was nothing in the 'set path' command of matlab. Still, every time I start up matlab, it complains about "Name is nonexistent or not a directory:". directory bla Directory bla is mentioned nowhere in my path, or in my startup.m. Even if I comment out my entire Does anyone know where this comes from? (2010a, mac os)
From: ImageAnalyst on 12 May 2010 19:22 Try rmpath, passing it the path that no longer exists. Then call savepath.
From: Theophane on 12 May 2010 19:49 ImageAnalyst <imageanalyst(a)mailinator.com> wrote in message <1dc04772-5350-4ef2-9ac6-e9f9b2145bd6(a)l28g2000yqd.googlegroups.com>... > Try rmpath, passing it the path that no longer exists. Then call > savepath. Didn't work :/ the specified directory is not in the path, matlab says (quite justifiably so, since this directory does not exist).
From: dpb on 12 May 2010 19:57 Theophane wrote: > ImageAnalyst <imageanalyst(a)mailinator.com> wrote in message > <1dc04772-5350-4ef2-9ac6-e9f9b2145bd6(a)l28g2000yqd.googlegroups.com>... >> Try rmpath, passing it the path that no longer exists. Then call >> savepath. > > Didn't work :/ > the specified directory is not in the path, matlab says (quite > justifiably so, since this directory does not exist). WAG...and I've a quite old version of ML so can't really check for anything new, but... Isn't any chance ML is caching something in the registry, is there? --
From: ImageAnalyst on 12 May 2010 20:57 On May 12, 7:49 pm, "Theophane " <theo.we...(a)hotmail.com> wrote: > ImageAnalyst <imageanal...(a)mailinator.com> wrote in message <1dc04772-5350-4ef2-9ac6-e9f9b2145...(a)l28g2000yqd.googlegroups.com>... > > Try rmpath, passing it the path that no longer exists. Then call > > savepath. > > Didn't work :/ > the specified directory is not in the path, matlab says (quite justifiably so, since this directory does not exist). ------------------------------------------------------------------------------------- Theophane: It DOES work. I just tried it. Twice! And I'll show you how. Initially I had this in my startup.m file: addpath(genpath('C:\Program Files\MATLAB\Work')); cd 'C:\Program Files\MATLAB\work' and all was well with the world. Then I exited MATLAB (required in order to rename a folder it's using). I renamed my work folder to work1 and relaunched MATLAB. All hell broke loose. MATLAB then complained about numerous missing folders in a volcanic explosion of barf to the command window. I then edited the startup.m file to put in take out the above lines and put these in: rmpath(genpath('C:\Program Files\MATLAB\Work')); addpath(genpath('C:\Program Files\MATLAB\Work1')); cd 'C:\Program Files\MATLAB\work1' savepath; I then saved it, and restarted MATLAB. It complained at first in the same way, because it was checking the folders before it ran the startup.m file. But then the startup.m file ran and "fixed" it. I simply exited MATLAB and restarted it . . . and everything was fine. MATLAB started up with a smile, the birds were singing, and all was again well with the world. No supernova of vomit to the command window. Then just to verify, I renamed my folder back to work (from work1) and repeated the process. It worked just like I explained. Once you have it working with no error messages, you can delete the rmpath() command from your startup.m file if you want. I don't know if this is the most direct and straightforward way of doing it, but I know it works. All it takes is restarting MATLAB twice. If you want to fix your problem, you can do this also. Good luck, ImageAnalyst
|
Pages: 1 Prev: resetting Gui Slider position Next: Show results in edit text GUI |