필터 지우기
필터 지우기

uicontrol doesn't work in Matlab 2023a

조회 수: 3 (최근 30일)
feynman feynman
feynman feynman 2024년 4월 15일
댓글: Bruno Luong 2024년 4월 16일
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?

채택된 답변

Bruno Luong
Bruno Luong 2024년 4월 15일
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
feynman feynman
feynman feynman 2024년 4월 16일
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 2024년 4월 16일
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.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by