Show in Listbox specific variables of workspace (GUI)
Ältere Kommentare anzeigen
Hello, I have two listboxes in a GUI and i would like to show in each one of my listbox different variables of my workspace. I tried doing :
function update_listbox(handles)
vars = evalin('base', 'who');
vars1 = evalin('base', 'name_var_wksp');
set(handles.listbox6,'String',vars)
set(handles.listbox7,'String',vars1)
but it gives me the values of the variable and not the name, in the listbox. I would just like to have the string in the listbox in order to plot later. Using matlab R2013a.
Thanks!
Antworten (1)
Megha Parthasarathy
am 17 Mai 2017
0 Stimmen
Hello,
1 Kommentar
Christine Abou Nasr
am 18 Mai 2017
Bearbeitet: Christine Abou Nasr
am 18 Mai 2017
Kategorien
Mehr zu Whos finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!