Warning: Initializing MATLAB Graphics failed

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 件のコメント

Walter Roberson
Walter Roberson 2024 年 6 月 23 日
Try reinstalling MATLAB.
If that does not help, then contact Mathworks for free installation support.
Zhang san
Zhang san 2024 年 6 月 23 日
I tried reinstalling it again, but it still shows this warning, but I don't have any problems running the program, is this bug a problem with matlab2024a?
Walter Roberson
Walter Roberson 2024 年 6 月 24 日
Contact Mathworks for free installation support.
Viktor Plattner
Viktor Plattner 2024 年 8 月 6 日
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)

サインインしてコメントする。

回答 (1 件)

Rajanya
Rajanya 2024 年 8 月 8 日

1 投票

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 件のコメント

wenxuan
wenxuan 2024 年 8 月 8 日
Thank you for your reply. I have tried the steps mentioned above, but I still encountered the warning message.
Rajanya
Rajanya 2024 年 8 月 23 日

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeIntroduction to Installation and Licensing についてさらに検索

製品

リリース

R2024a

質問済み:

2024 年 6 月 23 日

コメント済み:

2024 年 8 月 23 日

Community Treasure Hunt

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

Start Hunting!

Translated by