cannot overwrite an existing file
5 views (last 30 days)
Show older comments
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
3 Comments
Image Analyst
on 10 Jan 2012
I don't think hitting control z after clicking the save icon would foul things up. It probably gets saved way before you can even get your fingers on the control and z keys. But anyway I don't think anyone will be giving you any more help because it sounds like you figured out that it was just some weird flukey thing that probably won't happen again, especially since you think you know what caused it and thus how to avoid it. If it's reproducible via a normal sequence of operations, then let us know, otherwise I consider it a non-issue anymore.
Accepted Answer
Robert Cumming
on 9 Jan 2012
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....
0 Comments
More Answers (0)
See Also
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!