show and get data in button callback at GUI

3 ビュー (過去 30 日間)
Saeed
Saeed 2014 年 6 月 29 日
コメント済み: Joakim Magnusson 2014 年 6 月 30 日
Hello, I program a software in GUI. I need to show some data to user then get some other data from user. but I problem is this:
I need to show and get this data in While code in button callback function.
Please see my codes:
function button1_Callback(hObject, eventdata, handles)
while w>10
% calculate A here and then:
% I need show A to user and then get B.
% continue coding with B.
end
I want show a number to user and get an other number with GUI element (static text/ edit text box)
How I can do this? Is a popup page solution? How? or?
  1 件のコメント
Joakim Magnusson
Joakim Magnusson 2014 年 6 月 30 日
Why don't you just show A in a static text box in the same window as your button1? And then the user can write B in an edit text box?

サインインしてコメントする。

回答 (1 件)

Image Analyst
Image Analyst 2014 年 6 月 29 日

カテゴリ

Help Center および File ExchangeInteractive Control and Callbacks についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by