MATLAB >> Warning: Name is nonexistent or not a directory: C:\Program

by Ulrich » Wed, 04 Mar 2009 17:01:01 GMT

When I am trying to compile a matlab source with >mcc I get:

Warning: Name is nonexistent or not a directory: C:\Program
Files\MATLAB\R2008b\toolbox\compiler\patch.
Warning: Name is nonexistent or not a directory: C:\Program
Files\MATLAB\R2008b\toolbox\compiler\patch.
Depfun error: 'Unable to locate IOS2ID.m as a function on the MATLAB path'
Warning: Name is nonexistent or not a directory: C:\Program
Files\MATLAB\R2008b\toolbox\compiler\patch.
??? Error using ==> mcc
Error executing mcc, return status = 1.

What to do to get it work???
My guess: Since many years of matlab development, it is not able to handle blanks inside path names!
Tell me where to set this environment variable from C:\Program Files to the good old dos style PROGRA~1!

MATLAB >> Warning: Name is nonexistent or not a directory: C:\Program

by ImageAnalyst » Wed, 04 Mar 2009 19:42:44 GMT


Start/Control panel/system/Advanced/Environment variables/System
Variables
Click Path in the list, then click Edit and change "Program Files" to
"Progra~1"

I've never had your problem and I didn't change the path to the short
DOS path.

MATLAB >> Warning: Name is nonexistent or not a directory: C:\Program

by John » Sat, 14 Mar 2009 10:38:06 GMT

I'm currently having the same issue. Did you find a solution?

MATLAB >> Warning: Name is nonexistent or not a directory: C:\Program

by Jaroslaw Tuszynski » Sat, 10 Apr 2010 00:44:22 GMT


I had the same problem but creating empty folder 'C:\Program
Files\MATLAB\R2008b\toolbox\compiler\patch' fixed the problem.

Similar Threads

1. Warning: Duplicate directory name (?) - MATLAB

2. Duplicate directory name warning...

I've opted to start matlab with the
"C:\MATLAB\R2007a\bin\matlab.bat -sd H:\MyWorkDir\Matlab"
option forit to start in my work directory.

But with the 2007a version, it always adds the path to :

"C:\~\My Documents\Matlab" to the Matlab path each time I start
matlab, even if I delete it from the path manually. If I don't delete
it, the next time I close and reopen matlab, I get a warning:
"Warning: Duplicate directory name: C:\~\My Documents\MATLAB"

Now I really don't want Matlab to have anything to do with the My
Docs directory or want it to repeatedly add it to the path. How do I
do it?

PS : it's only a problem with the 2007a version.

3. help on "Warning: Duplicate directory name: " - MATLAB

4. Warning: Duplicate directory name

I have compiled a Matlab function using:
mcc -m myfunc.m
I obtain a myfunc.exe file.

When I run this file from the dos command prompt I get the following
warning :
Warning: Duplicate directory name: C:\MATLAB6p1\toolbox\matlab\iofun

I've checked my pathtool before compiling but I could find the
"C:\MATLAB6p1\toolbox\matlab\iofun" directory only once.

How come I run into this warning ?

Thanks for your help,

Cric

5. "Warning: Duplicate directory name" in 2007a - MATLAB

6. AM/AM, AM/AM Modeling

Is there any Matlab function available to model a memoryless
nonlinearity using AM/AM and AM/PM charcteristics?

If yes, could you let me know how I can get it? Thanks.

7. return function name, not m-file name - MATLAB

8. Variable Structure names (not field names)

OK. I have a variable "aircrafttype" that equals 'F16' and is a
string. I have a structure called 'F16' that has corresponding data
for this aircraft. I am trying to access this database by typing "
aircrafttype.weight " (which should access F16.weight ) When I do
this I get the error message

??? Attempt to reference field of non-structure array.

I can see why this happens and have tried str2func etc with no
success. Since "aircrafttype" could be F16, F18, F22 and access
different databases is there any way to reference "aircrafttype.???"
without having to use "switch" or "if" loops?

I appreciate any help on this subject. I have been trawling the help
and net for hours and cant find anything