AppDesigner and uibutton problem

2 次查看(过去 30 天)
tri stan
tri stan 2021-6-22
I wanted to give Matlab's AppDesigner a try. Unfortunately, the problem emerged just at the beggining. Whenever the application is using a Button control I keep obtaining an error like the one below:
"Error using uicontrol. Incorrect number of input arguments. Error in uibutton (line 85)
h = uicontrol(varargin{:});
Error in MainAppExample (line 96)
createComponents(app)
varagin{:} passed to uicontrol consists of two cells: one with the figure, and the second is a string: 'push' like here:
ans =
Figure (MATLAB App) with properties:
Number: []
Name: 'MATLAB App'
Color: [0.9400 0.9400 0.9400]
Position: [100 100 640 480]
Units: 'pixels'
Show all properties
ans =
'push'
I tried both creating an empty project with just a button control and using prexisting example applications (for example "Configure a Timer") on both R2019b and 2021a with the same effect.
The similar issue was raised here but with no conclusions or hints.
I think it's worth mentioning that I'm using Matlab on Linux machine (Debian) with its own JDK (not the Oracle one).
When running the same examples on Windows machine with Matlab R2020a everything goes smoothly.
  1 个评论
Mario Malic
Mario Malic 2021-6-22
I think it's worth mentioning that I'm using Matlab on Linux machine (Debian) with its own JDK (not the Oracle one). Maybe?
Otherwise contact customer support.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

产品


版本

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by