In Matlab, what is ~m file?

时间:2016-10-15 17:25:04

标签: git matlab file repository matlab-compiler

What does the ' ~ ' sign mean at the end of the file name?

enter image description here

BONUS QUESTION: How can I add files to the git repository without adding those '~' files?

1 个答案:

答案 0 :(得分:4)

That is a backup file, and if I am not mistaken it is actually from unix system and not matlab. On windows the backup files are *.asv. If you close your file the backup should disappear.

If you asking about version control, I would suggest you ignore all backup files by adding a like to .gitignore as follows: *.m~.