Build parameter panel on the main figure
0001 function ltpda_constructor_helper_buildParams(varargin) 0002 % Build parameter panel on the main figure 0003 0004 0005 mainfig = varargin{1}; 0006 pl = varargin{2}; 0007 0008 % get selected class 0009 clh = findobj(mainfig, 'Tag', 'LTPDA_constructor_helper_class'); 0010 cltxt = get(clh, 'String'); 0011 cl = cltxt{get(clh, 'Value')}; 0012 0013 % Convert plist to string 0014 str = string(pl); 0015 0016 ch = findobj(mainfig, 'Tag', 'LTPDA_constructor_helper_constructor'); 0017 0018 set(ch, 'String', sprintf('%s(%s)', cl, str)); 0019 0020