フィルターのクリア

Command Window Display Values to GUI's Static Text.

3 ビュー (過去 30 日間)
Nuwan Dassanayake
Nuwan Dassanayake 2013 年 10 月 12 日
回答済み: Jan 2013 年 10 月 13 日
Dear All,
I am trying to find way to display my command window characters or integers to GUI ststic text box. As example one of my program's result displays APPLE in command window i need to display that word in a static text box in a GUI.

採用された回答

Walter Roberson
Walter Roberson 2013 年 10 月 12 日
In the general case, this is tricky, but you might be able to handle it by using the diary function and reading from the diary as it is being created. I think this requires R2013a or later if you are using MS Windows (or else the buffering will not be right.)
In the more specific case of you wanting to capture the result from a specific operation at the time you run it, then replace
your expression here
with
T = evalc('your expression here');
and then send T to the static text box String property. Or better yet,
Tcell = regexp(T, '\n', 'split');
and send Tcell to an edit box String property for an edit box that is set with 'enable', 'disable' and 'Max', 2 . The edit box will act like a multi-line scrollable text area.
  1 件のコメント
Nuwan Dassanayake
Nuwan Dassanayake 2013 年 10 月 13 日
編集済み: Nuwan Dassanayake 2013 年 10 月 14 日
Thank you very much for your response!

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

その他の回答 (1 件)

Jan
Jan 2013 年 10 月 13 日
With the tool FEX: CmdWinTool you can obtain the command window text.

カテゴリ

Help Center および File ExchangeData Import and Export についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by