cannot overwrite an existing file

6 ビュー (過去 30 日間)
Robert
Robert 2012 年 1 月 6 日
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 件のコメント
Robert
Robert 2012 年 1 月 10 日
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 2012 年 1 月 10 日
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.

サインインしてコメントする。

採用された回答

Robert Cumming
Robert Cumming 2012 年 1 月 9 日
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 件)

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by