Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

In the group of buttons 1 to 9, what code should I use to print 0 if none of the buttons is selected, or if one is selected?

조회 수: 1 (최근 30일)
In the group of buttons 1 to 9, what code should I use to print 0 if none of the buttons is selected, or if one is selected?
I want to use '' if else'' but when radio buttons become nonselected, value should show the zero value??

답변 (1개)

Walter Roberson
Walter Roberson 2019년 2월 13일
if you are using a uibuttongroup then check isempty() the Selected property of the group.

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by