How to avoid generating *~ file

8 ビュー (過去 30 日間)
Mike
Mike 2012 年 8 月 28 日
Hey all,
under my Matlab m file fold, usually there are some *~ file, which is generated automatically. Sometime, it is a bit annoying, is there anyway to stop it?
To be clear, for example, say I have a file named test.m, the system will automatically gives me test.m~ file, which I don't want it.
Thanks.
Mike
  1 件のコメント
Oleg Komarov
Oleg Komarov 2012 年 8 月 28 日
Please, accept an answer.

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

回答 (2 件)

Jan
Jan 2012 年 8 月 28 日
編集済み: Jan 2012 年 8 月 28 日
Look in the preferences for the automatic creation of backup files: File > Preferences > Editor/Debugger > Autosave. I suggest to copy these files to an extra folder, e.g. D:\Temp\M-File_Backup, because from time to time undoing the changes of the last 5 minutes will be useful.
  1 件のコメント
Mike
Mike 2012 年 8 月 28 日
Thank you very much Jan, I works beautiful.

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


Image Analyst
Image Analyst 2012 年 8 月 28 日
Try this:
File -> Preferences -> Editor/Debugger -> Autosave
Look in the "Close options" group box. Is the "Automatically delete autosave files" checkbox checked? You might want to check that. It will keep autosave files open only while MATLAB is running and then delete them when it shuts down.
  1 件のコメント
Mike
Mike 2012 年 8 月 28 日
thanks man, it works.

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

カテゴリ

Help Center および File ExchangeEnvironment and Settings についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by