%-----------------------------------------------------------------------
% Job configuration created by cfg_util (rev $Rev: 3944 $)
%-----------------------------------------------------------------------
matlabbatch{1}.spm.stats.factorial_design.dir = {'F:\fMRI\Revenge\Oxytocin\InvolvedIn\OT_Time2\'};
%%
matlabbatch{1}.spm.stats.factorial_design.des.mreg.scans = {
                                                            'F:\fMRI\Revenge\GroupResult\InvolvedIn\con01_InvolvedIn_Pain_Neu\sub01_con_0001.img,1'
                                                            'F:\fMRI\Revenge\GroupResult\InvolvedIn\con01_InvolvedIn_Pain_Neu\sub02_con_0001.img,1'
                                                            'F:\fMRI\Revenge\GroupResult\InvolvedIn\con01_InvolvedIn_Pain_Neu\sub03_con_0001.img,1'
                                                            'F:\fMRI\Revenge\GroupResult\InvolvedIn\con01_InvolvedIn_Pain_Neu\sub04_con_0001.img,1'
                                                            'F:\fMRI\Revenge\GroupResult\InvolvedIn\con01_InvolvedIn_Pain_Neu\sub05_con_0001.img,1'
                                                            'F:\fMRI\Revenge\GroupResult\InvolvedIn\con01_InvolvedIn_Pain_Neu\sub06_con_0001.img,1'
                                                            'F:\fMRI\Revenge\GroupResult\InvolvedIn\con01_InvolvedIn_Pain_Neu\sub07_con_0001.img,1'
                                                            'F:\fMRI\Revenge\GroupResult\InvolvedIn\con01_InvolvedIn_Pain_Neu\sub08_con_0001.img,1'
                                                            'F:\fMRI\Revenge\GroupResult\InvolvedIn\con01_InvolvedIn_Pain_Neu\sub09_con_0001.img,1'
                                                            'F:\fMRI\Revenge\GroupResult\InvolvedIn\con01_InvolvedIn_Pain_Neu\sub10_con_0001.img,1'
                                                            'F:\fMRI\Revenge\GroupResult\InvolvedIn\con01_InvolvedIn_Pain_Neu\sub11_con_0001.img,1'
                                                            'F:\fMRI\Revenge\GroupResult\InvolvedIn\con01_InvolvedIn_Pain_Neu\sub12_con_0001.img,1'
                                                            'F:\fMRI\Revenge\GroupResult\InvolvedIn\con01_InvolvedIn_Pain_Neu\sub14_con_0001.img,1'
                                                            'F:\fMRI\Revenge\GroupResult\InvolvedIn\con01_InvolvedIn_Pain_Neu\sub15_con_0001.img,1'
                                                            'F:\fMRI\Revenge\GroupResult\InvolvedIn\con01_InvolvedIn_Pain_Neu\sub16_con_0001.img,1'
                                                            'F:\fMRI\Revenge\GroupResult\InvolvedIn\con01_InvolvedIn_Pain_Neu\sub17_con_0001.img,1'
                                                            'F:\fMRI\Revenge\GroupResult\InvolvedIn\con01_InvolvedIn_Pain_Neu\sub18_con_0001.img,1'
                                                            'F:\fMRI\Revenge\GroupResult\InvolvedIn\con01_InvolvedIn_Pain_Neu\sub19_con_0001.img,1'
                                                            'F:\fMRI\Revenge\GroupResult\InvolvedIn\con01_InvolvedIn_Pain_Neu\sub20_con_0001.img,1'
                                                            'F:\fMRI\Revenge\GroupResult\InvolvedIn\con01_InvolvedIn_Pain_Neu\sub21_con_0001.img,1'
                                                            'F:\fMRI\Revenge\GroupResult\InvolvedIn\con01_InvolvedIn_Pain_Neu\sub22_con_0001.img,1'
                                                            'F:\fMRI\Revenge\GroupResult\InvolvedIn\con01_InvolvedIn_Pain_Neu\sub23_con_0001.img,1'
                                                            'F:\fMRI\Revenge\GroupResult\InvolvedIn\con01_InvolvedIn_Pain_Neu\sub24_con_0001.img,1'
                                                            'F:\fMRI\Revenge\GroupResult\InvolvedIn\con01_InvolvedIn_Pain_Neu\sub25_con_0001.img,1'
                                                            'F:\fMRI\Revenge\GroupResult\InvolvedIn\con01_InvolvedIn_Pain_Neu\sub26_con_0001.img,1'
                                                            'F:\fMRI\Revenge\GroupResult\InvolvedIn\con01_InvolvedIn_Pain_Neu\sub27_con_0001.img,1'
                                                            'F:\fMRI\Revenge\GroupResult\InvolvedIn\con01_InvolvedIn_Pain_Neu\sub28_con_0001.img,1'
                                                            'F:\fMRI\Revenge\GroupResult\InvolvedIn\con01_InvolvedIn_Pain_Neu\sub29_con_0001.img,1'
                                                            'F:\fMRI\Revenge\GroupResult\InvolvedIn\con01_InvolvedIn_Pain_Neu\sub30_con_0001.img,1'
                                                            'F:\fMRI\Revenge\GroupResult\InvolvedIn\con01_InvolvedIn_Pain_Neu\sub31_con_0001.img,1'
                                                            'F:\fMRI\Revenge\GroupResult\InvolvedIn\con01_InvolvedIn_Pain_Neu\sub32_con_0001.img,1'
                                                            'F:\fMRI\Revenge\GroupResult\InvolvedIn\con01_InvolvedIn_Pain_Neu\sub33_con_0001.img,1'
                                                            'F:\fMRI\Revenge\GroupResult\InvolvedIn\con01_InvolvedIn_Pain_Neu\sub34_con_0001.img,1'
                                                            'F:\fMRI\Revenge\GroupResult\InvolvedIn\con01_InvolvedIn_Pain_Neu\sub35_con_0001.img,1'
                                                            'F:\fMRI\Revenge\GroupResult\InvolvedIn\con01_InvolvedIn_Pain_Neu\sub36_con_0001.img,1'
                                                            'F:\fMRI\Revenge\GroupResult\InvolvedIn\con01_InvolvedIn_Pain_Neu\sub37_con_0001.img,1'
                                                            'F:\fMRI\Revenge\GroupResult\InvolvedIn\con01_InvolvedIn_Pain_Neu\sub38_con_0001.img,1'
                                                            'F:\fMRI\Revenge\GroupResult\InvolvedIn\con01_InvolvedIn_Pain_Neu\sub39_con_0001.img,1'
                                                            'F:\fMRI\Revenge\GroupResult\InvolvedIn\con01_InvolvedIn_Pain_Neu\sub40_con_0001.img,1'
                                                            'F:\fMRI\Revenge\GroupResult\InvolvedIn\con01_InvolvedIn_Pain_Neu\sub41_con_0001.img,1'
                                                            };
%%
%%
matlabbatch{1}.spm.stats.factorial_design.des.mreg.mcov.c = [62.82;47.886;57.092;50.805;243.533;44.47;188.974;75.054;197.128;86.399;96.821;94.741;195.311;46.817;143.547;105.793;259.597;132.325;95.455;100.301;162.429;74.293;56.445;28.093;55.357;66.733;90.332;38.658;59.703;131.224;203.551;84.042;58.504;103.649;75.34;120.811;129.81;77.527;196.167;54.186];
%%
matlabbatch{1}.spm.stats.factorial_design.des.mreg.mcov.cname = 'OT_Time2';
matlabbatch{1}.spm.stats.factorial_design.des.mreg.mcov.iCC = 1;
matlabbatch{1}.spm.stats.factorial_design.des.mreg.incint = 1;
matlabbatch{1}.spm.stats.factorial_design.cov = struct('c', {}, 'cname', {}, 'iCFI', {}, 'iCC', {});
matlabbatch{1}.spm.stats.factorial_design.masking.tm.tm_none = 1;
matlabbatch{1}.spm.stats.factorial_design.masking.im = 1;
matlabbatch{1}.spm.stats.factorial_design.masking.em = {''};
matlabbatch{1}.spm.stats.factorial_design.globalc.g_omit = 1;
matlabbatch{1}.spm.stats.factorial_design.globalm.gmsca.gmsca_no = 1;
matlabbatch{1}.spm.stats.factorial_design.globalm.glonorm = 1;
matlabbatch{2}.spm.stats.fmri_est.spmmat(1) = cfg_dep;
matlabbatch{2}.spm.stats.fmri_est.spmmat(1).tname = 'Select SPM.mat';
matlabbatch{2}.spm.stats.fmri_est.spmmat(1).tgt_spec = {};
matlabbatch{2}.spm.stats.fmri_est.spmmat(1).sname = 'Factorial design specification: SPM.mat File';
matlabbatch{2}.spm.stats.fmri_est.spmmat(1).src_exbranch = substruct('.','val', '{}',{1}, '.','val', '{}',{1}, '.','val', '{}',{1});
matlabbatch{2}.spm.stats.fmri_est.spmmat(1).src_output = substruct('.','spmmat');
matlabbatch{2}.spm.stats.fmri_est.method.Classical = 1;
matlabbatch{3}.spm.stats.con.spmmat(1) = cfg_dep;
matlabbatch{3}.spm.stats.con.spmmat(1).tname = 'Select SPM.mat';
matlabbatch{3}.spm.stats.con.spmmat(1).tgt_spec = {};
matlabbatch{3}.spm.stats.con.spmmat(1).sname = 'Model estimation: SPM.mat File';
matlabbatch{3}.spm.stats.con.spmmat(1).src_exbranch = substruct('.','val', '{}',{2}, '.','val', '{}',{1}, '.','val', '{}',{1});
matlabbatch{3}.spm.stats.con.spmmat(1).src_output = substruct('.','spmmat');
matlabbatch{3}.spm.stats.con.consess{1}.tcon.name = '2nd';
matlabbatch{3}.spm.stats.con.consess{1}.tcon.convec = 1;
matlabbatch{3}.spm.stats.con.consess{1}.tcon.sessrep = 'repl';
matlabbatch{3}.spm.stats.con.consess{2}.tcon.name = '2nd_-1';
matlabbatch{3}.spm.stats.con.consess{2}.tcon.convec = -1;
matlabbatch{3}.spm.stats.con.consess{2}.tcon.sessrep = 'repl';
matlabbatch{3}.spm.stats.con.delete = 0;
