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

1 visualizzazione (ultimi 30 giorni)
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 Commento
Geoff Hayes
Geoff Hayes il 27 Gen 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?

Accedi per commentare.

Risposte (1)

Saurabh Gupta
Saurabh Gupta il 31 Gen 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.

Categorie

Scopri di più su Migrate GUIDE Apps in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by