필터 지우기
필터 지우기

How to take user input from a radio button.

조회 수: 1 (최근 30일)
Shilp Dixit
Shilp Dixit 2012년 10월 25일
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.
Thanks. -Shilp

채택된 답변

Sachin Ganjare
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.
  댓글 수: 1
Shilp Dixit
Shilp Dixit 2012년 10월 25일
My problem is that the radio buttons are coming on top of the 1st figure.
I want the flow of the program as: 1. Run Program
2. Radio button prompt asks user for suspension setting.
3. The program then uses this value of the suspension setting to create the graphs.
Right now the program proceeds to create the graph without waiting for the user input.
Thanks
Shilp

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 App Building에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by