How GUI popup menu List link with data
Mostrar comentarios más antiguos
I have a Workspace names result.
there are names in first column -> result(:,1) after every Run, the order and list of result changed.
Then I want to make popmenu in GUI which is linked with first column of result.
How can I do?
Respuestas (1)
Image Analyst
el 10 de Sept. de 2015
At the end of each "run" - when you have a new list in your cell array called "result" - do this
popupItems = result(:, 1); % Extract first column of cell array. It will be a list of strings.
set(handles.popup1, 'String', popupItems);
% Now select the first one, otherwise if the last time an item was selected that's longer than the list (like it was 30 but now the list is only 4 long), the popup will not be shown.
set(handles.popup1, 'Value', 1);
Categorías
Más información sobre App Building en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!