Home > functions > gui > batch > batch_list > vb_batch_list_update_concreate_parm_id_listbox.m

vb_batch_list_update_concreate_parm_id_listbox

PURPOSE ^

update concrete parameter id listbox

SYNOPSIS ^

function vb_batch_list_update_concreate_parm_id_listbox(fig)

DESCRIPTION ^

 update concrete parameter id listbox

 [USAGE]
    vb_batch_list_update_concrete_parm_id_listbox(<fig>);
 [IN]
    fig : figure handle

 Copyright (C) 2011, ATR All Rights Reserved.
 License : New BSD License(see VBMEG_LICENSE.txt)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function vb_batch_list_update_concreate_parm_id_listbox(fig)
0002 % update concrete parameter id listbox
0003 %
0004 % [USAGE]
0005 %    vb_batch_list_update_concrete_parm_id_listbox(<fig>);
0006 % [IN]
0007 %    fig : figure handle
0008 %
0009 % Copyright (C) 2011, ATR All Rights Reserved.
0010 % License : New BSD License(see VBMEG_LICENSE.txt)
0011 
0012 
0013 %
0014 % --- Previous check
0015 %
0016 if ~exist('fig', 'var') || isempty(fig) || ~ishandle(fig)
0017     error('invalid figure handle is specified.');
0018 end
0019 
0020 %
0021 % --- Main Procedure
0022 %
0023 data = guidata(fig);
0024 
0025 Nparm_set = vb_batch_mgr_get_num_of_parm_set(data.bmgr);
0026 
0027 % make name list of parameter set
0028 listbox_str = cell(0);
0029 ix_sub = [];
0030 for k=1:Nparm_set
0031     ix_main = k;
0032     [p, p_type, set_name] = ...
0033             vb_batch_mgr_get_parm(data.bmgr, ix_main, ix_sub);
0034     listbox_str{k, 1} = set_name;
0035 end
0036 
0037 % set name list to listbox
0038 set(data.H.concrete_parm_id_listbox, 'String', listbox_str);
0039 
0040 % update concrete parameter listbox
0041 vb_batch_list_update_concrete_parm_listbox(fig);

Generated on Tue 27-Aug-2013 11:46:04 by m2html © 2005