specify data channels displayed in trial viewer. [USAGE] [data] = vb_trial_extractor_specify_display_channel(data) [IN] data : vb_trial_extractor object [OUT] data : vb_trial_extractor object Copyright (C) 2011, ATR All Rights Reserved. License : New BSD License(see VBMEG_LICENSE.txt)
0001 function [data] = vb_trial_extractor_specify_display_channel(data) 0002 % specify data channels displayed in trial viewer. 0003 % [USAGE] 0004 % [data] = vb_trial_extractor_specify_display_channel(data) 0005 % [IN] 0006 % data : vb_trial_extractor object 0007 % [OUT] 0008 % data : vb_trial_extractor object 0009 % 0010 % Copyright (C) 2011, ATR All Rights Reserved. 0011 % License : New BSD License(see VBMEG_LICENSE.txt) 0012 0013 % 0014 % --- Previous check 0015 % 0016 if ~exist('data', 'var') 0017 error('data is a required parameter.'); 0018 end 0019 0020 % 0021 % --- Main Procedure 0022 % 0023 [selected_ch_list, cancel] = ... 0024 vb_te_channel_selector_new(data.org_data_ch_list, ... 0025 data.view_data_ch_list); 0026 0027 if ~cancel 0028 data.view_data_ch_list = selected_ch_list; 0029 end 0030 0031 % 0032 % --- After check 0033 % 0034 if nargout ~= 1 0035 error('function caller should receive vb_trial_extractor object.'); 0036 end