필터 지우기
필터 지우기

Multiple selection of items in list box using guide and execution of code for the selected items

조회 수: 1 (최근 30일)
Hello,
I would like to know how can we do multiple selection of folders in a listbox using guide execution of some functions for the selected folders. I knew how to select multiple folders in a list box, but I am not understanding how to use the selected folder for execution of certain function.
in guide I did max selction 10, min selection 1 and
function handles = MessageWindow(handles,Message)
msg = get(handles.MessageWindowList, 'String');
if(ischar(Message))
Message = cellstr(Message);
end
msg = [msg; Message];
set(handles.MessageWindowList, 'String', msg);
hoping for an answer.
Thanks; Meera
  댓글 수: 1
Adam
Adam 2015년 3월 2일
I'm not sure I understand your question, but if you have multi-selected from a listbox then the 'Value' property of the listbox will give you the indices of your multiple selections. This can be used to index into the 'String' property of the listbox to get the actual strings that were selected.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by