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

1 visualización (últimos 30 días)
Jeffrey Schlang
Jeffrey Schlang el 27 de En. de 2017
Respondida: Saurabh Gupta el 31 de En. de 2017
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 comentario
Geoff Hayes
Geoff Hayes el 27 de En. de 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?

Iniciar sesión para comentar.

Respuestas (1)

Saurabh Gupta
Saurabh Gupta el 31 de En. de 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.

Categorías

Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by