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 个评论
回答(1 个)
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!