% use FAST modelinstead of AR(1): Corbin, N., Todd, N., Friston, K. J., & Callaghan, M. F. (2018). Accurate modeling of temporal correlations in rapidly sampled fMRI time series. Human Brain Mapping, 26(3), 839?14. http://doi.org/10.1002/hbm.24218
% - AP to change back
% v4: AP remove -1 from design timing, but add durations to cue (1 volume) and
% probe (2).
% N = 44 YA + 53 OA;
% AP remove 2131, 2237, 1215 (see oNe Note)
% JQK: set up 2 regressor matrices for F-tests: load + stimulus target feature
matlabbatch{1}.spm.stats.fmri_spec.sess(indSession).cond(2).duration=repmat(3,numel(onsets),1);clearonsets;% duration of 1 (VarToolbox) vs 0 (SPM convention)
matlabbatch{1}.spm.stats.fmri_spec.sess(indSession).cond(3).duration=repmat(2,numel(onsets),1);clearonsets;% duration of 1 (VarToolbox) vs 0 (SPM convention)
matlabbatch{2}.spm.stats.fmri_est.spmmat(1)=cfg_dep('fMRI model specification: SPM.mat File',substruct('.','val','{}',{1},'.','val','{}',{1},'.','val','{}',{1}),substruct('.','spmmat'));
matlabbatch{1}.spm.stats.fmri_spec.sess(indRun).cond(6).duration=repmat(2,numel(onsets),1);clearonsets;% duration of 1 (VarToolbox) vs 0 (SPM convention)
matlabbatch{2}.spm.stats.fmri_est.spmmat(1)=cfg_dep('fMRI model specification: SPM.mat File',substruct('.','val','{}',{1},'.','val','{}',{1},'.','val','{}',{1}),substruct('.','spmmat'));