uifigure throws a bunch of errors.
MathWorks::System::IUserException [Error using matlab.ui.internal.componentframework.WebControllerFactory/checkPreconditions (line 45)
Invalid superclass name.
Error in matlab.ui.internal.componentframework.WebControllerFactory/create (line 92)
checkPreconditions( obj, component, parentController, nargin );]
MathWorks::System::IUserException [Error using matlab.ui.internal.componentframework.WebControllerFactory/checkPreconditions (line 45)
Invalid superclass name.

댓글 수: 3

Cris LaPierre
Cris LaPierre 2022년 3월 11일
Share your code along with a description of what you were doing that resulted in these errors.
Derrick Early
Derrick Early 2022년 3월 11일
Here is the code.
uif = uifigure;
I updated to matlab version 2022a.
Now the error is the following:
>> uif = uifigure;
Warning: Internal error creating figure controller.
>>
Derrick Early
Derrick Early 2022년 3월 11일
After restarting, matlab decided not to throw an error.

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

 채택된 답변

Walter Roberson
Walter Roberson 2022년 3월 11일

0 개 추천

There are two main possibilities:
  • something on your path, third party code or your own function, has the same name as a function that matlab relies on; or
  • somehow, on a case-insensitive file system, a file got created with the wrong case. For example the file came out myclass.m to define the class MyClass . MATLAB places the call asking for MyClass and the case-insensitive file system thinks surely myclass.m is the same file, but then MATLAB checks what it got back and says "Wrong file!"
In the first situation try
restoredefaultpath; rehash toolboxcache
and cd to a directory with no matlab files. If it starts working then you know that something on the path is the problem.
In particular if you have SPM installed, it has some capability directories that include functions that interfere with MATLAB.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

제품

릴리스

R2020b

태그

질문:

2022년 3월 11일

댓글:

2022년 3월 11일

Community Treasure Hunt

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

Start Hunting!

Translated by