cannot overwrite an existing file

5 views (last 30 days)
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
Robert
Robert on 10 Jan 2012
I'm using Vista on a Dell desktop.
I should say one more thing. I caused the problem by revising/editing the program which I had intended to save to a new location. By mistake I hit save and then immediately used control z to stop the process. The process did stop and I didn't ruin the old file,or the revised file but apparently something got stuck in the editor.
Thanks for whatever help you can give me.
Bob
Image Analyst
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.

Sign in to comment.

Accepted Answer

Robert Cumming
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....

More Answers (0)

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!