Checking a GUI Checkbox 'Value'
조회 수: 16 (최근 30일)
이전 댓글 표시
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)
댓글 수: 0
채택된 답변
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
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!