Matlab Desktop Editor State Data Lost

19 次查看(过去 30 天)
While trying to save a certain figure, I tried forcing the access to my file directory via the code:
x=matlab.desktop.editor.getAll;
theScriptList=[theScriptList; {x(1,1).Filename} {x(1,1).Text}];
clearvars -except theScriptList
But this apparently has deleted my dynamic Java object directory paths and now matlab only runs the file that I had open in the editor right then. No other script can be run, Matlba returns the error:
Error using matlab.internal.editor.eval.FileInfo
Java exception occurred:
java.io.IOException: java.lang.RuntimeException: Internal Exception in reading MLX file : Could not open
destination package
at com.mathworks.services.mlx.MlxFileUtils.writeCode(MlxFileUtils.java:265)
Caused by: java.lang.RuntimeException: Internal Exception in reading MLX file : Could not open destination
package
at com.mathworks.services.mlx.MlxFileUtils.nativeWriteMlxFile(Native Method)
at com.mathworks.services.mlx.MlxFileUtils.writeCode(MlxFileUtils.java:262)
Error in matlab.internal.editor.eval.TmpFilePath.get
Error in matlab.internal.editor.evaluateCode
Error in matlab.internal.editor.evaluateCode
Is there any way to recover these files or restore matlab to a state that it is able to run the scripts?

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

产品


版本

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by