Hi! I created a Matlab GUI , where an 'Edit text' command is placed. It is initially empty. At a certain point, when I load a number, it is visualized in this 'Edit text' box, with a command like this
set(handles.edit3,'String',num)
where 'num' is the variable associated to the number. Then, when I press another button, I want this Edit text box to be empty again . How can I set this instruction ?

 Respuesta aceptada

Ben11
Ben11 el 25 de Ag. de 2014

0 votos

At the beginning of this button's callback, use something like this:
set(handles.edit3,'String','')
which displays an empty string

2 comentarios

aurc89
aurc89 el 25 de Ag. de 2014
Thanks !
Ben11
Ben11 el 25 de Ag. de 2014
You're welcome!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Environment and Settings en Centro de ayuda y File Exchange.

Preguntada:

el 25 de Ag. de 2014

Comentada:

el 25 de Ag. de 2014

Community Treasure Hunt

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

Start Hunting!

Translated by