AppDesigner and uibutton problem

3 Ansichten (letzte 30 Tage)
tri stan
tri stan am 22 Jun. 2021
Kommentiert: Mario Malic am 22 Jun. 2021
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 Kommentar
Mario Malic
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.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange

Produkte


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by