Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (11 sloc) 434 Bytes
function spm_estimateModel_jsh(stats_dir)
% SETUP BATCH JOB STRUCTURE
model_estimation = struct;
% spmmat
model_estimation.matlabbatch{1}.spm.stats.fmri_est.spmmat = {[stats_dir filesep 'SPM.mat']};
% write_residuals
model_estimation.matlabbatch{1}.spm.stats.fmri_est.write_residuals = 0;
% method
model_estimation.matlabbatch{1}.spm.stats.fmri_est.method.Classical = 1;
% RUN BATCH JOB
cfg_util('run',model_estimation.matlabbatch);