function build_demo() field_list = {'Demofield','TUE_field','ASML_field'}; choice = listdlg('liststring', field_list, 'OKString', 'Build', 'InitialValue', [1 2]); try set_demo_global_par on; set_demo_tuning; for c = 1:length(choice) selectfield(-1, strcat('global_par_', field_list{choice(c)}, '.h')); if strcmp(field_list{choice(c)},'ASML_field'), selectgoal('goal_par_ASML_goal.h'); else selectgoal('goal_par_BREDE_goal.h'); end make_all_install; build_all demo; copy_exe(field_list{choice(c)}); end catch exception exception exception.message end set_demo_global_par off; end