フィルターのクリア

I am trying to display a status in a GUI using Edit Textbox

1 回表示 (過去 30 日間)
Jeffrey Schlang
Jeffrey Schlang 2017 年 1 月 27 日
回答済み: Saurabh Gupta 2017 年 1 月 31 日
I am trying to write a status to a gui edit textbox. I am using the following command using: "set(handles.Status_disp,'Noise Ananlysis started ...')" I get an error.
K>> set(handles.Status_disp,'Noise Analysis started ...')
Error using matlab.ui.control.UIControl/set
There is no Noise Analysis started ... property on the UIControl class.
>> handles.Status_disp
Undefined variable "handles" or class "handles.Status_disp".
  1 件のコメント
Geoff Hayes
Geoff Hayes 2017 年 1 月 27 日
Jeffrey - please copy and paste the function (signature and body) that is throwing the error. From what you have shown above, it looks like you have put a breakpoint in your code and are trying to execute
set(handles.Status_disp,'Noise Analysis started ...')
Which function are you trying to run this command from? Is the handles structure defined?

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

回答 (1 件)

Saurabh Gupta
Saurabh Gupta 2017 年 1 月 31 日
Looking at the error message, it seems that issue is related to incorrect usage of the 'matlab.ui.control.UIControl/set' method. The following command may be a potential correction.
set(handles.Status_disp,'String','Noise Analysis started ...')
If this doesn't resolve the error, as Geoff mentioned, it may be more helpful if the details of the handles structure and surrounding code are available.

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by