Home > marsbar > examples > batch > run_s3_model.m

run_s3_model

PURPOSE ^

Run SPM 2-session model for MarsBaR ER sample data

SYNOPSIS ^

This is a script file.

DESCRIPTION ^

 Run SPM 2-session model for MarsBaR ER sample data

 You might want to define the path to the example data here, as in
 subjroot = '/my/path/somewhere';

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 % Run SPM 2-session model for MarsBaR ER sample data
0002 %
0003 % You might want to define the path to the example data here, as in
0004 % subjroot = '/my/path/somewhere';
0005 subjroot = get_subjroot();
0006 
0007 sesses = {'sess1','sess2','sess3'};
0008 
0009 spm_v = spm('ver');
0010 sdirname = [spm_v '_ana'];
0011 if ~strcmp(spm_v, 'SPM99'), spm_defaults; end
0012 
0013 % Make sure SPM modality-specific defaults are set
0014 spm('defaults', 'fmri');
0015 
0016 % Run statistics, contrasts
0017 model_file = configure_er_model(subjroot, sesses, sdirname);
0018 estimate_er_model(model_file, [1 0]);

Generated on Wed 11-May-2022 16:26:09 by m2html © 2003-2019