Filter löschen
Filter löschen

get the values from user via text field

1 Ansicht (letzte 30 Tage)
fatemeh
fatemeh am 20 Dez. 2013
Kommentiert: fatemeh am 21 Dez. 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?

Akzeptierte Antwort

Azzi Abdelmalek
Azzi Abdelmalek am 20 Dez. 2013
You can use an edit box and pushbutton with callback:
y=str2double(get(handles.edit1,'string'))
  3 Kommentare
fatemeh
fatemeh am 21 Dez. 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!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Migrate GUIDE Apps finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by