App Radio Button Loop?
조회 수: 1 (최근 30일)
이전 댓글 표시
Hello!
My team and I have a radio group that we want to be able to switch which button is selected (ADD or DELETE) by pressing the spacebar. We thought it would be efficent to use a loop, but are not sure how to do this. Any advice?
Our current code is included below:
case 32
if app.ADDButton == 1
set(app.DELETEButton, 'Value', 1);
end
if app.DELETEButton == 1
set(app.ADDButton, 'Value', 1);
end
댓글 수: 0
답변 (1개)
Abhivandan Pandey
2020년 6월 14일
Hi Emily,
Please refer to Geoff's answer in the following link:https://in.mathworks.com/matlabcentral/answers/151060-using-windowkeypressfcn-with-uicontrol
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!