フィルターのクリア

GUI, how to return result in the textbox?

2 ビュー (過去 30 日間)
W_Elsa
W_Elsa 2018 年 11 月 30 日
回答済み: Geoff Hayes 2018 年 11 月 30 日
Hello, I am new to GUI.
I created a app designer file, and I want to display the result (text).
I tried both methods as shown below, and it shows that "Error using matlab.ui.control.TextArea/set, There is no String property on the TextArea class"
set(app.TextArea,'String',sprintf('Yes'));
app.TextArea.String = sprintf('Yes');
(The component is app.TextArea)
Can anyone help me with this problem? Thank you!

回答 (1 件)

Geoff Hayes
Geoff Hayes 2018 年 11 月 30 日
Perhaps it should be
app.TextArea.Text = sprintf('Yes');
instead? Please see uitextarea for details.

カテゴリ

Help Center および File ExchangeDialog Boxes についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by