Hi, I am trying to save a list of words and set them in a GUI listbox dynamically. This is my loop:
L = length(scchildren1) c= 1; for z=1:L A= A+1; B= A; B =int2str(B); B= scchildren1{z} set(handles.listbox2,'String',B, 'Value', c); B= str2num('B'); B= B+1; c= c+1;end
I don’t know which property of listbox I can access to change line for each save operation. I thought maybe ‘Value’, but false. Now the problem is I am saving all words in one place in each iteration and at the end remains only one. Any idea would be helpful. Thanks
Best Answer