LTPDV_BUILD_GET_SELECTED_PSET returns the currently selected set on the build panel. M Hewitson 26-08-08 $Id: ltpdv_build_get_selected_pset.m,v 1.1 2008/09/02 07:51:47 hewitson Exp $
0001 % LTPDV_BUILD_GET_SELECTED_PSET returns the currently selected set on 0002 % the build panel. 0003 % 0004 % M Hewitson 26-08-08 0005 % 0006 % $Id: ltpdv_build_get_selected_pset.m,v 1.1 2008/09/02 07:51:47 hewitson Exp $ 0007 % 0008 0009 function set = ltpdv_build_get_selected_pset(mainfig) 0010 0011 % Fill in the set selector list 0012 sh = findobj(mainfig, 'Tag', 'LTPDVbuildSetSelect'); 0013 0014 % Get the selected class 0015 strs = get(sh, 'String'); 0016 idx = get(sh, 'Value'); 0017 set = strs{idx}; 0018 0019 end