Error message when placing any component in app designer.
11 次查看(过去 30 天)
显示 更早的评论
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 个评论
Sandeep Mishra
2023-7-6
Thanks for confirmation,
I am answering the same to mark the question answered!
采纳的回答
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.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Environment and Settings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!