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.(这个一般不会发生,有同名文件的时候也可能不能保存成功!)。