在ubuntu下安装好matlab2009a后,命令窗口总是出现:
Cannot write to preference file "matlab.prf" in "/home/lv/.matlab/R2009a".
Check file permissions.
The desktop configuration was not saved successfully
解决方法:
sudo chmod 777 /home/lv/.matlab,这个是解决第一个问题。其中的lv是你的用户名,777是权限,大家在网上搜一下chmod就会明白的。./matlab文件夹被隐藏了,它就在
/home/lv
文件夹里。
sudo chmod a+w -R ~/.matlab,这条命令可以解决第二个问题。~ 表示的就是/home/lv文件夹。至于原因,可以看这个博客。
http://blog.sina.com.cn/s/blog_9ce5a1b50101546z.html
Cannot write to preference file "matlab.prf" in "/home/lv/.matlab/R2009a".
Check file permissions.
The desktop configuration was not saved successfully
解决方法: