Warning: Initializing MATLAB Graphics failed

52 views (last 30 days)
I got the following error today when I restarted matlab and I am not sure how to fix it
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:
Unable to read MAT-file /home/nathanielgoldfarb/.matlab/R2021a/matlabprefs.mat. File might be corrupt.
> In hgrc (line 163)
In matlab.graphics.internal.initialize (line 15)

Accepted Answer

Nathaniel Goldfarb
Nathaniel Goldfarb on 8 Sep 2021

More Answers (0)


Find more on Graphics Object Programming in Help Center and File Exchange




Community Treasure Hunt

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

Start Hunting!