-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfirst_level_ofl_job.m
51 lines (51 loc) · 3.46 KB
/
first_level_ofl_job.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
%-----------------------------------------------------------------------
% Job saved on 23-Apr-2021 14:03:29 by cfg_util (rev $Rev: 7345 $)
% spm SPM - SPM12 (7487)
% cfg_basicio BasicIO - Unknown
%-----------------------------------------------------------------------
matlabbatch{1}.spm.util.exp_frames.files = '<UNDEFINED>';
matlabbatch{1}.spm.util.exp_frames.frames = '<UNDEFINED>';
matlabbatch{2}.spm.stats.fmri_spec.dir = '<UNDEFINED>';
matlabbatch{2}.spm.stats.fmri_spec.timing.units = 'secs';
matlabbatch{2}.spm.stats.fmri_spec.timing.RT = 2.87;
matlabbatch{2}.spm.stats.fmri_spec.timing.fmri_t = 47;
matlabbatch{2}.spm.stats.fmri_spec.timing.fmri_t0 = 23;
matlabbatch{2}.spm.stats.fmri_spec.sess.scans(1) = cfg_dep('Expand image frames: Expanded filename list.', substruct('.','val', '{}',{1}, '.','val', '{}',{1}, '.','val', '{}',{1}), substruct('.','files'));
matlabbatch{2}.spm.stats.fmri_spec.sess.cond = struct('name', {}, 'onset', {}, 'duration', {}, 'tmod', {}, 'pmod', {}, 'orth', {});
matlabbatch{2}.spm.stats.fmri_spec.sess.multi = '<UNDEFINED>';
matlabbatch{2}.spm.stats.fmri_spec.sess.regress = struct('name', {}, 'val', {});
matlabbatch{2}.spm.stats.fmri_spec.sess.multi_reg = '<UNDEFINED>';
matlabbatch{2}.spm.stats.fmri_spec.sess.hpf = 128;
matlabbatch{2}.spm.stats.fmri_spec.fact = struct('name', {}, 'levels', {});
matlabbatch{2}.spm.stats.fmri_spec.bases.hrf.derivs = [0 0];
matlabbatch{2}.spm.stats.fmri_spec.volt = 1;
matlabbatch{2}.spm.stats.fmri_spec.global = 'None';
matlabbatch{2}.spm.stats.fmri_spec.mthresh = 0.8;
matlabbatch{2}.spm.stats.fmri_spec.mask = '<UNDEFINED>';
matlabbatch{2}.spm.stats.fmri_spec.cvi = 'AR(1)';
matlabbatch{3}.spm.stats.fmri_est.spmmat(1) = cfg_dep('fMRI model specification: SPM.mat File', substruct('.','val', '{}',{2}, '.','val', '{}',{1}, '.','val', '{}',{1}), substruct('.','spmmat'));
matlabbatch{3}.spm.stats.fmri_est.write_residuals = 0;
matlabbatch{3}.spm.stats.fmri_est.method.Classical = 1;
matlabbatch{4}.spm.stats.con.spmmat(1) = cfg_dep('Model estimation: SPM.mat File', substruct('.','val', '{}',{3}, '.','val', '{}',{1}, '.','val', '{}',{1}), substruct('.','spmmat'));
matlabbatch{4}.spm.stats.con.consess{1}.tcon.name = 'cs plus';
matlabbatch{4}.spm.stats.con.consess{1}.tcon.weights = [1 0 0 0];
matlabbatch{4}.spm.stats.con.consess{1}.tcon.sessrep = 'none';
matlabbatch{4}.spm.stats.con.consess{2}.tcon.name = 'cs minus';
matlabbatch{4}.spm.stats.con.consess{2}.tcon.weights = [0 1 0 0];
matlabbatch{4}.spm.stats.con.consess{2}.tcon.sessrep = 'none';
matlabbatch{4}.spm.stats.con.consess{3}.tcon.name = 'us';
matlabbatch{4}.spm.stats.con.consess{3}.tcon.weights = [0 0 1 0];
matlabbatch{4}.spm.stats.con.consess{3}.tcon.sessrep = 'none';
matlabbatch{4}.spm.stats.con.consess{4}.tcon.name = 'no us';
matlabbatch{4}.spm.stats.con.consess{4}.tcon.weights = [0 0 0 1];
matlabbatch{4}.spm.stats.con.consess{4}.tcon.sessrep = 'none';
matlabbatch{4}.spm.stats.con.consess{5}.tcon.name = 'us difference';
matlabbatch{4}.spm.stats.con.consess{5}.tcon.weights = [0 0 1 -1];
matlabbatch{4}.spm.stats.con.consess{5}.tcon.sessrep = 'none';
matlabbatch{4}.spm.stats.con.consess{6}.fcon.name = 'effects of interest';
matlabbatch{4}.spm.stats.con.consess{6}.fcon.weights = [1 0 0 0
0 1 0 0
0 0 1 0
0 0 0 1];
matlabbatch{4}.spm.stats.con.consess{6}.fcon.sessrep = 'none';
matlabbatch{4}.spm.stats.con.delete = 1;