How can I show outputs in the GUI figure ?

I would appreciate if you could give me a clue about the following:
I have developed a GUI figure as interface to run a rutine. In the figure I have "edit text" boxes to specify the values required as imput.
I don't want the output in the comand window.
How can I show the output in the same figure (window) in some pre-specified "text boxes"?
e.g.
input | ____________| ........................ output | ______________|

回答 (2 件)

Image Analyst
Image Analyst 2013 年 4 月 11 日

0 投票

Use the set() command. Assuming you used GUIDE to build your GUI:
set(handles.editInput, 'String', yourInputString);
set(handles.editOutput, 'String', yourOutputString);
If you didn't use GUIDE and built your own from scratch:
set(handleToEditInput, 'String', yourInputString);
set(handleToEditOutput, 'String', yourOutputString);
Obviously replace the handle variable names and string names with whatever your actual variables are called.
Jsierra
Jsierra 2013 年 4 月 11 日

0 投票

Thanks
It worked!!!

カテゴリ

ヘルプ センター および File ExchangeInteractive Control and Callbacks についてさらに検索

質問済み:

2013 年 4 月 11 日

Community Treasure Hunt

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

Start Hunting!

Translated by