필터 지우기
필터 지우기

Unable to read MAT-file C:\Users\PRINCE PC\AppData​\Roaming\M​athWorks\M​ATLAB\R201​6a\matlabp​refs.mat - How do I fix this

조회 수: 7 (최근 30일)
As the title states, I keep getting that error message anytime I launch MATLAB. I suspect it has to do with a forced shut down with the figure window open as this was what happened last before that error start appearing. Please how do I fix this:
Error - Unable to read MAT-file C:\Users\PRINCE PC\AppData\Roaming\MathWorks\MATLAB\R2016a\matlabprefs.mat
Version - R2016a
Ps: I have tried locating the file yet can't find it (no folder named AppData on that path).
  댓글 수: 4
LucasBar
LucasBar 2024년 8월 6일
Hi, thank you!
How it will work?
Do I just need to execute the command?
prefdir
Nothing else?
My best regards
Walter Roberson
Walter Roberson 2024년 8월 6일
First you execute
prefdir
inside of MATLAB. Take note of the directory name returned. Then you exit MATLAB. In your File Explorer, rename the directory that was returned by prefdir() to something else. Then start MATLAB again. This will trigger MATLAB to recreate all of the preferences.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품


릴리스

R2016a

Community Treasure Hunt

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

Start Hunting!

Translated by