I am using MATLAB on a PC running Windows XP, and my machine is connected to a network. When I create a new MATLAB file in the 'current directory', (when this is a network directory) while MATLAB is running, MATLAB does not recognize the file.
When I do the following:
1. Map a network drive.
2. Run MATLAB locally.
3. Change directories to the network drive I just mapped.
4. Create a new MATLAB file and save it on the same network drive. (current directory)
5. Run the MATLAB file in MATLAB by typing its name at the prompt.
For some reason MATLAB will not recognize the file.
6. I then use the CLEAR function and this doesn't help.
7. If I add the current directory to the path with the command:
addpath(cd)
the function is now seen.
8. Now I update the file I just created and saved in the network drive, but MATLAB does not recognize the changes.
9. I must type "clear all" or "clear function_name" for the changes to be seen.
However, on my external drive, MATLAB sees the function the first time I create it, but it will not see any changes unless I clear the function.
Best Answer