Error message when placing any component in app designer.

조회 수: 12 (최근 30일)
Sólyomvári
Sólyomvári 2023년 7월 6일
댓글: feng 2024년 7월 22일
If I create a blank app and I try to place down any component from the component library (a label in this case), an error message window pops up, with the following text:
Unable to add component matlab.ui.control.Label. Component creation failed with error: Too many input arguments.
I did not write a single line of code anywhere, and did not modify any code or settings. I just started app designer by typint "appdesigner" in MATLAB command line and dropped a Label from the left side to the layout. I can add context menu, menu bar and toolbar without any issue. Why is this happening?
  댓글 수: 6
Sólyomvári
Sólyomvári 2023년 7월 6일
Hello. I ran the two commands and it fixed the issue. Thanks a lot!
Sandeep Mishra
Sandeep Mishra 2023년 7월 6일
Thanks for confirmation,
I am answering the same to mark the question answered!

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

채택된 답변

Sandeep Mishra
Sandeep Mishra 2023년 7월 6일
Hello Sólyomvári,
I understood from our discussion in the comments that the possible reason for the error is MATLAB doesn't have default path.
You can se the default path for MATLAB by running below two command in MATLAB command window
>> restoredefaultpath
>> rehash toolboxcache
You can refer to the below documentation to learn more about "rehash toolboxcache" and "restoredefaultpath" in MATLAB.
  댓글 수: 1
feng
feng 2024년 7월 22일
Thankyou so much! it‘s an easy and great way!it works!

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Environment and Settings에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by