Warning: Initializing MATLAB Graphics failed

56 visualizaciones (últimos 30 días)
Zhang san
Zhang san el 23 de Jun. de 2024
Comentada: Rajanya el 23 de Ag. de 2024
I recently upgraded matlab2024a, but as soon as I open the software I get the following warning message :
Warning: Failed to initialize MATLAB graphics.
This indicates that there may be a serious problem in your MATLAB setup that should be resolved as soon as possible. The error detected is: MATLAB:sum:wrongInput
MATLAB:sum:wrongInput
Invalid data type. The first parameter must be a numeric or logical value.
> Location: hgrc (line 154)
Location: matlab.graphics.internal.initialize (line 15)
  4 comentarios
Walter Roberson
Walter Roberson el 24 de Jun. de 2024
Contact Mathworks for free installation support.
Viktor Plattner
Viktor Plattner el 6 de Ag. de 2024
I have a similar issue:
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:getfield:InvalidType
Inputs must be strings, character vectors, or cell array of indices.
> In hgrc (line 154)
In matlab.graphics.internal.initialize (line 15)

Iniciar sesión para comentar.

Respuestas (1)

Rajanya
Rajanya el 8 de Ag. de 2024
The issue may be resolved by running the following commands from MATLAB Command Window:
>>> restoredefaultpath
>>> rehash toolboxcache
>>> savepath
Restart MATLAB after this and see if that resolves the warning messages.
Feel free to reach out if you have any queries.
  2 comentarios
wenxuan
wenxuan el 8 de Ag. de 2024
Thank you for your reply. I have tried the steps mentioned above, but I still encountered the warning message.

Iniciar sesión para comentar.

Categorías

Más información sobre Introduction to Installation and Licensing en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by