AppDesigner and uibutton problem
1 view (last 30 days)
Show older comments
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.
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 Comment
Mario Malic
on 22 Jun 2021
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.
Answers (0)
See Also
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!