From: Jaroslaw Tuszynski on
"Ulrich" <millim1974(a)yahoo.com> wrote in message <golg0d$cvr$1(a)fred.mathworks.com>...
> 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!

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