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

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

 Respuesta aceptada

Image Analyst
Image Analyst el 11 de En. de 2015
Editada: Image Analyst el 11 de En. de 2015
checkboxValue = get(handles.checkbox1, 'value')
if checkboxValue
set(handles.text1, 'Visible', 'on');
else
set(handles.text1, 'Visible', 'off');
end

Más respuestas (0)

Categorías

Más información sobre Variables en Centro de ayuda y File Exchange.

Preguntada:

el 11 de En. de 2015

Comentada:

el 11 de En. de 2015

Community Treasure Hunt

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

Start Hunting!

Translated by