How to display on GUI?

How to display user defined string value using input dialogue on the gui,,, suppose user enters some string,,,and it will come to workspace,,,and i want to show those user defined string on the GUI

回答 (1 件)

Image Analyst
Image Analyst 2013 年 2 月 11 日

0 投票

First of all, look at Doug Hull's blogs on making GUIs. http://blogs.mathworks.com/videos/category/gui-or-guide/
The answer to your question is to make up a string, say with sprintf(), then use set() to send it to the text label control:
set(handles.text1, 'String', yourString);

1 件のコメント

Arun Badigannavar
Arun Badigannavar 2013 年 2 月 11 日
I got worked out with "evalin" command,,,thanks for ur response

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

カテゴリ

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

タグ

質問済み:

2013 年 2 月 11 日

Community Treasure Hunt

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

Start Hunting!

Translated by