From: Alan B on
My office just upgraded to 2009b, and now every time I try to run code with f5 or ctrl-enter, Matlab gives me the "... is not found in the current directory or on the MATLAB path" dialog box. When I try "change directory", the script runs, but the current directory does not actually change. This happens regardless of the location of the script, the contents of the path variable, and the current working directory. That is, I can try to run a script that is in my current working directory, and the dialog box will still appear.

My startup.m (where I normally add all my project directories using addpath) is still running fine, and when I view the path in the command window it appears to contain all the necessary directories.

Does anyone know why this is happening? How can I fix it?