打开“保存命令历史记录时遇到错误”时的Matlab错误
16lz
2021-01-22
I installed matlab on my linux machine but on a media drive /media/d/usr/local/MATLAB/R2014b
but when I open Matlab I get the below error, so if anyone could please advise how to solve this:
我在我的linux机器上安装了matlab,但是在媒体驱动/媒体/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)
1 个解决方案
#1
2
I had to change permissions of the directory ~/.matlab so that I can write into it. I used the following command in terminal and the problem was resolved:
我必须更改目录~/的权限。用matlab写一下。我在终端使用了以下命令,问题解决了:
sudo chmod -R 777 .matlab