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