1、You most probably don't have write permissions to create file in current directory. If you are working under Windows 7, it is possible that your working directory is somewhere under
Program Files
or at a drive root. Check it with pwd
command.(修改保存路徑爲當前運行路徑,一般就可以解決問題)
2、Check also if you can save and other file, like MATLAB m-file. You should have the same problem if it's a permission issue.(權限問題,是否可以保存文件)
3、Another possible cause is that you already created a file under the same name and have it opened by another program.(這個一般不會發生,有同名文件的時候也可能不能保存成功!)。