From: David MacKinnon on
After attempting to use addpath (added using the startup.m script) to consolidate some often-used functions under a directory structure, I find myself now unable to run scripts or functions in the current working directory. Prior to this, I was unable to run scripts in directories added using addpath if they contained more than about 5 files. I can run some of the scripts if I create a new directory, but for reasons I have yet to ascertain from experiments, Matlab will "decide" that scripts cannot be run from that directory as well.

Ideas? I am now evaluating Octave because Matlab has become effectively non-functional. If Octave doesn't appear to do the job then I will simply re-install Matlab to see if that fixes the problem.



From: Sean on
"David MacKinnon" <david.mackinnon(a)nrc-cnrc.gc.ca> wrote in message <i220no$ick$1(a)fred.mathworks.com>...
> After attempting to use addpath (added using the startup.m script) to consolidate some often-used functions under a directory structure, I find myself now unable to run scripts or functions in the current working directory. Prior to this, I was unable to run scripts in directories added using addpath if they contained more than about 5 files. I can run some of the scripts if I create a new directory, but for reasons I have yet to ascertain from experiments, Matlab will "decide" that scripts cannot be run from that directory as well.
>
> Ideas? I am now evaluating Octave because Matlab has become effectively non-functional. If Octave doesn't appear to do the job then I will simply re-install Matlab to see if that fixes the problem.
>

One simple possibility could be that your files don't have the '.m' extension. Is it possible that they're saved with a different extension which may be hidden?
From: Andy on
"David MacKinnon" <david.mackinnon(a)nrc-cnrc.gc.ca> wrote in message <i220no$ick$1(a)fred.mathworks.com>...
> After attempting to use addpath (added using the startup.m script) to consolidate some often-used functions under a directory structure, I find myself now unable to run scripts or functions in the current working directory. Prior to this, I was unable to run scripts in directories added using addpath if they contained more than about 5 files. I can run some of the scripts if I create a new directory, but for reasons I have yet to ascertain from experiments, Matlab will "decide" that scripts cannot be run from that directory as well.
>
> Ideas? I am now evaluating Octave because Matlab has become effectively non-functional. If Octave doesn't appear to do the job then I will simply re-install Matlab to see if that fixes the problem.
>
>
>

Have you tried restoredefaultpath? If that doesn't work, have you called tech support? Either of these seems preferable to re-installation.
From: David MacKinnon on
"Sean " <sean.dewolski(a)nospamplease.umit.maine.edu> wrote in message <i223ft$de5$1(a)fred.mathworks.com>...
> "David MacKinnon" <david.mackinnon(a)nrc-cnrc.gc.ca> wrote in message <i220no$ick$1(a)fred.mathworks.com>...
>
> One simple possibility could be that your files don't have the '.m' extension. Is it possible that they're saved with a different extension which may be hidden?

I'm afraid not. All the files have .m extensions. Specifically, they are files I was executing previously and have not been changed. Same with any new "test" files (single line disp() output files) I create. Moving them to a different directory allows me to run them until Matlab decides to no longer run them.
From: David MacKinnon on
"Andy " <myfakeemailaddress(a)gmail.com> wrote in message <i22586$5uh$1(a)fred.mathworks.com>...
> "David MacKinnon" <david.mackinnon(a)nrc-cnrc.gc.ca> wrote in message <i220no$ick$1(a)fred.mathworks.com>...
>
> Have you tried restoredefaultpath? If that doesn't work, have you called tech support? Either of these seems preferable to re-installation.

I tried restoredefaultpath but it doesn't work. Literally, the script throws an error. Here is the result:

____________________________
??? Error using ==> restoredefaultpath
System error: 'C:\Program' is not recognized as an internal or external command,
operable program or batch file.

Command executed: C:\Program Files\MATLAB704\sys\perl\win32\bin\perl.exe "C:\Program Files\MATLAB704\toolbox\local\getphlpaths.pl" "C:\Program Files\MATLAB704"

Error in ==> restoredefaultpath at 45
error('MATLAB:restoredefaultpath:PerlError','System error: %s\nCommand executed: %s', ...
_________________________________

It appears that when it calls pearl it doesn't use the DOS 8.3 format for the directory name so halts when it tries to run "C:\Program" part of the call.

I haven't tried tech support yet but will try that once I've run out of options I can do myself.
 |  Next  |  Last
Pages: 1 2 3
Prev: Publish stylefile
Next: convert rgb movie to greyscale