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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by