IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
listbox_get_selected_1stname.m
Go to the documentation of this file.
1 %>@ingroup misc
2 %>@file
3 %>@brief Returns the first selected string o a listbox of popupmenu
4 
5 function s = listbox_get_selected_1stname(h_listbox)
6 s = '';
7 a = get(h_listbox, 'String');
8 if ~isempty(a)
9  a = a(get(h_listbox, 'Value'));
10  if ~(a{1}(1) == '(')
11  s = a{1};
12  end;
13 end;
function listbox_get_selected_1stname(in h_listbox)