Home > functions > device > meg > private_func > vb_ch_info_get_channel_list_ext.m

vb_ch_info_get_channel_list_ext

PURPOSE ^

<<private>> return list of EXTRA channel from ch_info

SYNOPSIS ^

function [ch_list] = vb_ch_info_get_channel_list_ext(ch_info)

DESCRIPTION ^

 <<private>> return list of EXTRA channel from ch_info
 [usage]
   [ch_list] = vb_ch_info_get_channel_list_ext(ch_info)
 [input]
   ch_info : <required> <<struct>> temporal channel information
 [output]
   ch_list : list of EXTRA channel which ch_info has [N x 1]
 [note]
   if ch_info is not specified or is empty, this function returns empty
 [history]
   2007-07-12 (Sako) initial version

 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:

SUBFUNCTIONS ^

SOURCE CODE ^

0001 function [ch_list] = vb_ch_info_get_channel_list_ext(ch_info)
0002 % <<private>> return list of EXTRA channel from ch_info
0003 % [usage]
0004 %   [ch_list] = vb_ch_info_get_channel_list_ext(ch_info)
0005 % [input]
0006 %   ch_info : <required> <<struct>> temporal channel information
0007 % [output]
0008 %   ch_list : list of EXTRA channel which ch_info has [N x 1]
0009 % [note]
0010 %   if ch_info is not specified or is empty, this function returns empty
0011 % [history]
0012 %   2007-07-12 (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('ch_info', 'var') ch_info = []; end
0019 [ch_info] = inner_check_arguments(ch_info);
0020 
0021 % --- MAIN PROCEDURE --------------------------------------------------------- %
0022 %
0023 ch_list = [];
0024 
0025 if ~isempty(ch_info) && isfield(ch_info, 'ext_channel')
0026   ch_list = ch_info.ext_channel;
0027 end
0028 return;
0029 %
0030 % --- END OF MAIN PROCEDURE -------------------------------------------------- %
0031 
0032 % --- INNER FUNCTIONS -------------------------------------------------------- %
0033 %
0034 % --- inner_check_arguments()
0035 %
0036 function [ch_info] = inner_check_arguments(ch_info)
0037 func_ = mfilename;
0038 if isempty(ch_info)
0039   % require no action
0040 end
0041 return;
0042 %
0043 % --- end of inner_check_arguments()
0044 %
0045 % --- END OF INNER FUNCTIONS ------------------------------------------------- %
0046 
0047 %%% END OF FILE %%%

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