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

1 view (last 30 days)
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 Comment
Geoff Hayes
Geoff Hayes on 27 Jan 2017
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?

Sign in to comment.

Answers (1)

Saurabh Gupta
Saurabh Gupta on 31 Jan 2017
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.

Categories

Find more on Migrate GUIDE Apps in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!