get the values from user via text field

2 views (last 30 days)
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?

Accepted Answer

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

Sign in to comment.

More Answers (0)

Categories

Find more on Migrate GUIDE Apps in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!