Matlab Error: graphic

조회 수: 59 (최근 30일)
dario cecchetti
dario cecchetti 2017년 11월 3일
댓글: Walter Roberson 2020년 9월 4일
Hi everybody,I was running simulink, but after some second my pc stucked. Then I shutted down the pc brutally. When I opened Matlab, I saw the following warning:
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\cecch\AppData\Roaming\MathWorks\MATLAB\R2017a\matlabprefs.mat. File
might be corrupt.
> In hgrc (line 163)
In initprefs (line 11)
In matlabrc (line 137)
What should I do?

채택된 답변

Walter Roberson
Walter Roberson 2017년 11월 3일
I recommend deleting C:\Users\cecch\AppData\Roaming\MathWorks\MATLAB\R2017a\matlabprefs.mat . After that you will need to go in and reconfigure any preferences you had changed, such as how things dock, or hot-keys, or which warning messages you want the automatic syntax checker to look for.
  댓글 수: 7
Prince Ogbodum
Prince Ogbodum 2020년 9월 4일
I can't seem to find the folder Appdata, what might be wrong??
Walter Roberson
Walter Roberson 2020년 9월 4일
If you still have a working-enough MATLAB, then give the command
prefdir
to find the name of the directory.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Environment and Settings에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by