Error with Matlab internal editor

74 views (last 30 days)
Chet Seligman
Chet Seligman on 27 Apr 2018
Answered: Marwan Muhammad on 5 Oct 2020
version '9.3.0.713579 (R2017b)'
When I type: syms x y z at command line it works fine. However, if I put it in the editor and then run section, I get the following error:
Error using matlab.internal.editor.eval.FileInfo
Java exception occurred:
java.io.IOException: java.lang.RuntimeException:
Internal Exception in reading MLX file :
fl:filesystem:AccessDenied
at
com.mathworks.services.mlx.MlxFileUtils.writeCode(MlxFileUtils.java:204)
Caused by: java.lang.RuntimeException: Internal
Exception in reading MLX file :
fl:filesystem:AccessDenied
at
com.mathworks.services.mlx.MlxFileUtils.nativeWriteMlxFile(Native
Method)
at
com.mathworks.services.mlx.MlxFileUtils.writeCode(MlxFileUtils.java:202)
Error in matlab.internal.editor.eval.TmpFilePath.get
Error in matlab.internal.editor.evaluateCode
Error in matlab.internal.editor.evaluateCode
  2 Comments
As Gr
As Gr on 9 Jun 2018
Hi Chet,
I have occasionally had the same issue with MATLAB, lately. I am using version R2017b, also, and have found that I tend to have this error appear when I run a command in MATLAB after my computer has been locked and in sleep mode for any period of time (with MATLAB open on the computer). I found a similar question asked on MATLAB Answers at the following address: https://au.mathworks.com/matlabcentral/answers/392291-java-error-when-running-script
However, in that case, the issue seemed to be related to running a file on multiple devices at once and/or using multiple versions of MATLAB. I have only ever used version R2017b and only on one device, so I don't believe that this solution would stop me from receiving the error. I suspect it may be related to the computer going to sleep with MATLAB open, although I'm not sure why that would cause an error. Was your device asleep before you started receiving that error?

Sign in to comment.

Answers (1)

Marwan Muhammad
Marwan Muhammad on 5 Oct 2020
I had the same issue when i tried to run a cell (ctrl+enter) & the reason was that there were 2 open instances of matlab. so, i just had to close one of them.

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!