linux - 打开 "An error was encountered while saving the command history"Matlab报错

标签 linux matlab ubuntu

我在我的 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/

相关文章:

android - 在终端在后台运行android builds/gradle?

ubuntu - 如何使用 Mongoc (mongo c lib) 创建 TTL 索引

eclipse - 无法在 eclipse-luna(ubuntu-12.04) 中平滑滚动

c++ - C/C++ 未使用的内联函数 undefined reference

linux - 将 nl 命令中的行增量设置为 float

r - R中的基本二维三次样条拟合

matlab - 神经网络输出 :Scaling the output range

MATLAB "element-wise"逻辑索引

linux - 除了 close() 之外,有没有办法通知进程的死亡?

linux - 学习 linux shell 脚本对我来说有多有用/有多难?替代建议?