I have a file named "a.b.txt" in my $MATLAB\work directory (where $MATLAB is the MATLAB root directory on my machine), as returned by typing
matlabroot
at the MATLAB command prompt.)
When I am in this directory, the following command:fopen('a.b.txt')
works correctly. However, when I am in a different directory, the file is not found, and the command:
cd ..fopen('a.b.txt')
does not open the file. The same steps open the file correctly in MATLAB 6.5.1 (R13SP1).
Best Answer