get the values from user via text field

1 次查看(过去 30 天)
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?

采纳的回答

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

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Migrate GUIDE Apps 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by