Read cell arrays from Pop up menu in GUI and Plot

1 visualización (últimos 30 días)
Teju
Teju el 5 de Sept. de 2019
Respondida: Teju el 12 de Sept. de 2019
gui1.png
I would like to read the data from Pop up menu list and plot according to the Cell array in Table as shown in screen shot.
I can able to get the data(inputsignalNames) in Pop up menu with Cell array but not able to plot the Input signal Data with respect to Input signal name selected from Pop up menu.
Please suggest ? please share a link for example if already available
  1 comentario
Rik
Rik el 5 de Sept. de 2019
Don't use evalin to share variables between functions.
You should be able to use the Value property to see which variable is selected. Then you can use indexing to retrieve the data:
val=get(handles.popupmenu1,'Value');
data=Table{2,val};

Iniciar sesión para comentar.

Respuesta aceptada

Teju
Teju el 12 de Sept. de 2019
Thanks for the feedback

Más respuestas (0)

Categorías

Más información sobre Logical en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by