필터 지우기
필터 지우기

Checking a GUI Checkbox 'Value'

조회 수: 16 (최근 30일)
Rick
Rick 2012년 4월 25일
댓글: Ana Silva 2017년 12월 7일
If I have a few Gui checkbox statements, how do I check the values of them to see if they changed from my original default setting ?? Here is what I used for my first checkbox statement:
h.checkbox1 = uicontrol(current_f,'Style','checkbox', 'Value',1)

채택된 답변

Jan
Jan 2012년 4월 25일
Then:
value = get(h.checkbox1, 'Value');
If you want to store the initial value of the checkbox, you could use either the handles struct or the UserData of the uicontrol.
  댓글 수: 2
Rick
Rick 2012년 4월 25일
Thank you Dude....... You DA Man !!!!!!!!!
Ana Silva
Ana Silva 2017년 12월 7일
how do I get the value from the checkbox after being selected?

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by