Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (13 sloc) 539 Bytes
function spm_setupTaskContrast_jsh(stats_dir, params)
% SETUP BATCH JOB STRUCTURE
contrast = struct;
% spmmat
contrast.matlabbatch{1}.spm.stats.con.spmmat = {[stats_dir filesep 'SPM.mat']};
% consess
contrast.matlabbatch{1}.spm.stats.con.consess{1}.tcon.name = params.name;
contrast.matlabbatch{1}.spm.stats.con.consess{1}.tcon.weights = params.weights;
contrast.matlabbatch{1}.spm.stats.con.consess{1}.tcon.sessrep = 'none';
% delete
contrast.matlabbatch{1}.spm.stats.con.delete = 0;
% RUN BATCH JOB
cfg_util('run',contrast.matlabbatch);