uicontrol doesn't work in Matlab 2023a

25 visualizzazioni (ultimi 30 giorni)
feynman feynman
feynman feynman il 15 Apr 2024 alle 13:05
Commentato: Bruno Luong il 16 Apr 2024 alle 9:05
figure;pauseButton=uicontrol('Style','pushbutton',...
'String','pause','Position',[2000 60 100 100],...
'Callback',@(src,event)uiwait);
This code is supposed to work but it doesn't have any button showing up in Matlab 2023a, why?

Risposta accettata

Bruno Luong
Bruno Luong il 15 Apr 2024 alle 13:19
The button position you give is way off push the button outside the universe. This happens with all MATLAB.
figure;pauseButton=uicontrol('Style','pushbutton',...
'String','pause','
Callback',@(src,event)uiwait);
  6 Commenti
feynman feynman
feynman feynman il 16 Apr 2024 alle 8:53
Now I got how to set units to normalize, but after that when I specify the position to be [2000 60 100 100] it's still out of scope.
Bruno Luong
Bruno Luong il 16 Apr 2024 alle 9:05
You still don't understand the concept of Unit, if you do you would never use Position outside 0, 1 in normalized units
Google and read. Sorry but I'll not here to correcct every single mistake you make by randomly do in your code.

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Migrate GUIDE Apps in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by