Borrar filtros
Borrar filtros

get the values from user via text field

1 visualización (últimos 30 días)
fatemeh
fatemeh el 20 de Dic. de 2013
Comentada: fatemeh el 21 de Dic. de 2013
Hi I want get the values from user via text field i design my gui but i do not know how access the items of these and can i save the values that users entered into text field?

Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 20 de Dic. de 2013
You can use an edit box and pushbutton with callback:
y=str2double(get(handles.edit1,'string'))
  3 comentarios
fatemeh
fatemeh el 21 de Dic. de 2013
y=str2double(get(handles.edit1,'string')) where can i see the y? and when i write it in the callback of button it is get error to me!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by