get the values from user via text field

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

You can use an edit box and pushbutton with callback:
y=str2double(get(handles.edit1,'string'))

3 Comments

thanks,i want access to one m-file from another m-file that means i want using the variables on one m-file to another m-file can u help me in this case?
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 App Building in Help Center and File Exchange

Asked:

on 20 Dec 2013

Commented:

on 21 Dec 2013

Community Treasure Hunt

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

Start Hunting!