MATLAB: How to make visible static text by clicking on check box check box;static text 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 Best Answer checkboxValue = get(handles.checkbox1, 'value')if checkboxValue set(handles.text1, 'Visible', 'on');else set(handles.text1, 'Visible', 'off');end Related SolutionsMATLAB: How to move a static text box Check your units, it's probably gone off the figureget(handles.text1,'Units') MATLAB: Visibility of an edit text / GUI First of all, I think you should use a togglebutton, as with a pushbutton the edit box would go invisible as soon as you let go of the mouse button.for the button callback:if get(hObject,'Value') set(handles.editTag,'Visible','On')else set(handles.editTag,'Visible','Off')endWhere editTag is the Tag of your edit button (The default is edit1) Related QuestionGUI checkbox set visibilityStatic Text Handle CreationMATLAB GUI: Is it possible to change the appearance/properties of your figure if a certain action is doneSyncing both sliders and edit boxes
Best Answer