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 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!