필터 지우기
필터 지우기

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 CenterFile Exchange에서 Dialog Boxes에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by