return channel name list. [USAGE] [ch_list] = continous_file_get_ch_list(obj, type); [IN] obj : continous_file object type : Channel type : 'MEG', 'EEG', 'EXTRA' [OUT] ch_list : channnel name list. Copyright (C) 2011, ATR All Rights Reserved. License : New BSD License(see VBMEG_LICENSE.txt)
0001 function [ch_list] = vb_continuous_file_get_ch_list(obj, type) 0002 % return channel name list. 0003 % [USAGE] 0004 % [ch_list] = continous_file_get_ch_list(obj, type); 0005 % [IN] 0006 % obj : continous_file object 0007 % type : Channel type : 'MEG', 'EEG', 'EXTRA' 0008 % [OUT] 0009 % ch_list : channnel name list. 0010 % 0011 % Copyright (C) 2011, ATR All Rights Reserved. 0012 % License : New BSD License(see VBMEG_LICENSE.txt) 0013 0014 % 0015 % --- Previous check 0016 % 0017 if ~exist('obj', 'var') 0018 error('obj is a required parameter.'); 0019 end 0020 if ~exist('type', 'var') 0021 error('type is a required parameter.'); 0022 end 0023 % 0024 % --- Main Procedure 0025 % 0026 ch_info = vb_load_channel_info(obj.filename, type); 0027 ch_list = ch_info.Name(ch_info.Active == 1);