我在我的 linux 机器上安装了 matlab,但在媒体驱动器 /media/d/usr/local/MATLAB/R2014b
上,但是当我打开 Matlab 时,出现以下错误,所以如果有人可以请建议如何解决这个问题:
An error was encountered while saving the command history
java.io.FileNotFoundException: /home/userA/.matlab/R2014b/History.xml (Permission denied)
at java.io.RandomAccessFile.open(Native Method)
at java.io.RandomAccessFile.<init>(Unknown Source)
at com.mathworks.mde.cmdhist.AltHistoryCollection$CommandSaver.run(AltHistoryCollection.java:1212)
at java.lang.Thread.run(Unknown Source)
最佳答案
我必须更改目录 ~/.matlab 的权限,以便我可以写入它。我在终端中使用了以下命令,问题得到解决:
sudo chmod -R 777 .matlab
关于linux - 打开 "An error was encountered while saving the command history"Matlab报错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28934046/