How to make visible static text by clicking on check box?

조회 수: 7 (최근 30일)
Lolipop
Lolipop 2015년 1월 11일
댓글: Lolipop 2015년 1월 11일
Can anyone tell me how to make visible static text in GUI clicking on check box?
I made check box and static text,but text is visible no matter is check box turned on or off.
Thank you

채택된 답변

Image Analyst
Image Analyst 2015년 1월 11일
편집: Image Analyst 2015년 1월 11일
checkboxValue = get(handles.checkbox1, 'value')
if checkboxValue
set(handles.text1, 'Visible', 'on');
else
set(handles.text1, 'Visible', 'off');
end

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by