0001
0002
0003
0004
0005
0006 clear all
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019 job_mode = 5;
0020 data_mode = 2;
0021
0022 switch data_mode
0023 case 1
0024
0025 root_dir = [getenv('MATHOME') '/Sekiyama'];
0026 data_file = {'AM090311a_voice_mik_B'};
0027 ext = '_epoch.meg.mat';
0028 stat_file = [];
0029 actfile = [root_dir '/' 'test' ];
0030 case 2
0031
0032 root_dir = [getenv('MATHOME') '/BCI_SK/epoch_data01/080903'];
0033 data_file = {'Sako_20080903_01'; 'Sako_20080903_02'};
0034 ext = '_epoch.eeg.mat';
0035 stat_file = [];
0036 actfile = [root_dir '/' 'test' ];
0037 case 3
0038
0039 root_dir = [getenv('MATHOME') '/BCI_SK/epoch_data01/080903'];
0040 data_file = [];
0041 ext = '_epoch.eeg.mat';
0042 stat_file = [root_dir '/SK_all'];
0043 actfile = [root_dir '/' 'test' ];
0044 end
0045
0046 Nfile = length(data_file);
0047
0048 for n=1:Nfile
0049 data_file{n} = [root_dir '/' data_file{n} ext];
0050 end
0051
0052
0053
0054
0055
0056
0057
0058
0059
0060
0061
0062
0063 thred_val = [9 9];
0064 thred_ch = 1/4;
0065 prob_val = 0.025;
0066
0067
0068
0069 switch job_mode
0070 case {0,1,2,10}
0071 [fileinfo] = vb_job_bad_trial(data_file,job_mode, ...
0072 thred_val, prob_val, thred_ch, actfile, stat_file);
0073 case {5,6,7,8}
0074 [fileinfo] = vb_job_bad_trial_interact(data_file,job_mode, ...
0075 thred_val, prob_val, thred_ch, actfile, stat_file);
0076 end