AppDesigner and uibutton problem
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentario
Mario Malic
el 22 de Jun. de 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.
Respuestas (0)
Ver también
Categorías
Más información sobre Startup and Shutdown en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!