How do I fix this error on Matlab startup? java.lang.IllegalArgumentException: File migratePref.txt should only contain 'T' or 'F'!
11 ビュー (過去 30 日間)
古いコメントを表示
This error also appears when using the Application Compiler
java.lang.IllegalArgumentException: File migratePref.txt should only contain 'T' or 'F'!
java.lang.IllegalArgumentException: File migratePref.txt should only contain 'T' or 'F'!
at com.mathworks.services.Prefs.readMigrateFlag(Prefs.java:2196)
at com.mathworks.services.Prefs.createTwoWayMapPrefsSettings(Prefs.java:375)
at com.mathworks.services.Prefs.<clinit>(Prefs.java:213)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at com.mathworks.util.PostVMInit$StartupClass.init(PostVMInit.java:161)
at com.mathworks.util.PostVMInit.perform(PostVMInit.java:237)
Warning: Initializing MATLAB Graphics failed.
This indicates a potentially serious problem in your MATLAB setup, which should be resolved as soon as possible. Error detected was:
MATLAB:load:unableToReadMatFile
Unable to read MAT-file C:\Users\BrendanM\AppData\Roaming\MathWorks\MATLAB\R2018a\matlabprefs.mat. File might be corrupt.
> In hgrc (line 163)
In initprefs (line 11)
In matlabrc (line 94)
回答 (1 件)
Kautuk Raj
2024 年 12 月 12 日
The error message you are encountering indicates that the startup preferences for MATLAB are invalid or corrupt.
I suggest you try to to recreate the preferences currently in place on your system using the following article on the MATLAB Answers forum: https://www.mathworks.com/matlabcentral/answers/99625
Try following the steps outlined there, and after doing so launch MATLAB again to check if it resolves the error.
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!