Home > m > gui > constructor_helper > ltpda_constructor_helper_sets.m

ltpda_constructor_helper_sets

PURPOSE ^

Callback executed when user selects a parameter set

SYNOPSIS ^

function ltpda_constructor_helper_sets(varargin)

DESCRIPTION ^

 Callback executed when user selects a parameter set

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function ltpda_constructor_helper_sets(varargin)
0002 
0003 % Callback executed when user selects a parameter set
0004 
0005 mainfig = findobj('Tag', 'LTPDAconstructor_helper');
0006 
0007 % get selected class
0008 clh   = findobj(mainfig, 'Tag', 'LTPDA_constructor_helper_class');
0009 cltxt = get(clh, 'String');
0010 cl    = cltxt{get(clh, 'Value')};
0011 
0012 % get selected set
0013 lh   = findobj(mainfig, 'Tag', 'LTPDA_constructor_helper_sets');
0014 sets = get(lh, 'String');
0015 set  = sets{get(lh, 'Value')};
0016 
0017 if strcmp(set, 'Default')
0018   pl = getappdata(mainfig, 'plist');
0019 else
0020   eval(sprintf('pl = %s(%s, ''Params'', ''%s'');', cl, cl, set));
0021 end
0022 
0023 ltpda_constructor_helper_buildParams(mainfig, pl);
0024

Generated on Mon 31-Mar-2008 13:54:54 by m2html © 2003