Warning: Initializing MATLAB Graphics failed

조회 수: 56 (최근 30일)
Zhang san
Zhang san 2024년 6월 23일
댓글: Rajanya 2024년 8월 23일
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월 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일
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.

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

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

제품


릴리스

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by