How to take user input from a radio button.
조회 수: 7 (최근 30일)
이전 댓글 표시
Hi,
I want to take input for a certain setting from the user and based on that setting proceed forward with rest of the program. Right now my radio buttons are appearing super-imposed on top of my graph1 and rest of the outputs are displayed irrespective of the radio button selected.
http://pastebin.com/hYbef55G Main Code Block
http://pastebin.com/32U41xxh Function block
Thanks. -Shilp
댓글 수: 0
채택된 답변
Sachin Ganjare
2012년 10월 25일
편집: Sachin Ganjare
2012년 10월 25일
If overlapping radio buttons is your problem, then:
uicontrol('Style','Radio', 'Parent',hBtnGrp, 'HandleVisibility','off', 'Position',[15 150 70 30], 'String','Comfort', 'Tag','C');
uicontrol('Style','Radio', 'Parent',hBtnGrp, 'HandleVisibility','off', 'Position',[15 120 70 30], 'String','Sport', 'Tag','S');
Here positions values are same, change it.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Chassis Systems에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!