MATLAB: Cannot overwrite an existing file

cannot overwrite file

If I create any new file, let's call it "test". Save it and then open it. It is fine, and works. Then when I try to save it, I get the message "test.m already exists. Do you want to replace it?" I choose "yes".
Then the message appears, with a big red X saying "test.m is already open in the MATLAB editor. To overwrite the file, close the original first"
This also happens to any existing file that I choose to open. None can be saved after opening.
How can I wipe out this error without uninstalling and re-installing my MATLAB software?
Bob

Best Answer

this can happen when you have the same file open in the editor twice - sanity check that is not the case - otherwise Matlab must "think" that the file is open twice....
Related Question