AppDesigner and uibutton problem
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentar
Mario Malic
am 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.
Antworten (0)
Siehe auch
Kategorien
Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!