return type list of extra channels [usage] ch_type = vb_meginfo_get_channel_type_extra(meg_info) [input] meg_info : <required> <<struct>> MEGinfo which has 'ExtraChannelInfo' [output] ch_type : list of channel type [note] return value includes reference channels if exist [history] 2008-02-01 (Sako) initial version Copyright (C) 2011, ATR All Rights Reserved. License : New BSD License(see VBMEG_LICENSE.txt)
0001 function ch_type = vb_meginfo_get_channel_type_extra(meg_info) 0002 % return type list of extra channels 0003 % [usage] 0004 % ch_type = vb_meginfo_get_channel_type_extra(meg_info) 0005 % [input] 0006 % meg_info : <required> <<struct>> MEGinfo which has 'ExtraChannelInfo' 0007 % [output] 0008 % ch_type : list of channel type 0009 % [note] 0010 % return value includes reference channels if exist 0011 % [history] 0012 % 2008-02-01 (Sako) initial version 0013 % 0014 % Copyright (C) 2011, ATR All Rights Reserved. 0015 % License : New BSD License(see VBMEG_LICENSE.txt) 0016 0017 % --- CHECK ARGUMENTS --- % 0018 if ~exist('meg_info', 'var'), meg_info = []; end 0019 [meg_info] = inner_check_arguments(meg_info); 0020 0021 % --- MAIN PROCEDURE --------------------------------------------------------- % 0022 % 0023 ch_type = meg_info.ExtraChannelInfo.Channel_type; 0024 return; 0025 % 0026 % --- END OF MAIN PROCEDURE -------------------------------------------------- % 0027 0028 % --- INNER FUNCTIONS -------------------------------------------------------- % 0029 % 0030 % --- inner_check_arguments() 0031 % 0032 function [meg_info] = inner_check_arguments(meg_info) 0033 func_ = mfilename; 0034 if isempty(meg_info) 0035 error('(%s)meg_info is a required parameter', func_); 0036 end 0037 0038 if ~isfield(meg_info, 'ExtraChannelInfo') 0039 error('(%s)meg_info must have ExtraChannelInfo field', func_); 0040 end 0041 return; 0042 % 0043 % --- end of inner_check_arguments() 0044 % 0045 % --- END OF INNER FUNCTIONS ------------------------------------------------- % 0046 0047 %%% END OF FILE %%%