Dear Guillaum,
I'm doing my second level analysis, full factory
I have entered all parameters a little like for the contraste for the 1st
level.
Then I have called similar commande
spm_jobman('run', jobs), apprently it's not the good call, since I have
gotten the error message in the attached file.
Can I still begin with
spm('Defaults','fMRI');
and end with
spm_jobman('run',jobs);
Need I enter other argument to run fullfactor job ?
Would you please help me.
Sincerely thanks
Tao
----- Original Message -----
From: "Guillaume Flandin" <[log in to unmask]>
To: <[log in to unmask]>
Sent: Wednesday, June 18, 2008 7:08 PM
Subject: Re: [SPM] spm5 use
> Dear Tao,
>
> There is no "Multiple Contrasts" option like with "Multiple Conditions" or
> "Multiple Regressors" but this can easily be done with a script:
>
> % Define as many T-contrasts as you want
> contrasts(1).name = 'Name_Contrast_1';
> contrasts(1).convec = [1 0];
> contrasts(2).name = 'Name_Contrast_2';
> contrasts(2).convec = [0 1];
>
> % Specify and estimate new T-contrasts
> spm('Defaults','fMRI');
> clear jobs
> jobs{1}.stats{1}.con.spmmat = cellstr('/path/to/SPM.mat');
> for i=1:length(contrasts)
> jobs{1}.stats{1}.con.consess{i}.tcon = contrasts(i);
> end
> spm_jobman('run',jobs);
>
> I hope this helps,
> Guillaume.
>
> jiang wrote:
>> Dear SPM5 users,
>>
>> I would like to know whether there is a method to enter the several T
>> tests contrasts at the same time, a little like to enter multiconditions
>> ?
>> thank you for your help !
>> Tao
>
> --
> Guillaume Flandin, PhD
> Wellcome Trust Centre for Neuroimaging
> University College London
> 12 Queen Square
> London WC1N 3BG
>
>
>
--------------------------
Running "Factorial design specification"
Mapping files : ...done
Design configuration : ??? Error using ==> spm_vol>subfunc
[]: Unknown file format.
Error in ==> spm_vol>subfunc1 at 83
v = subfunc(P(i,:));
Error in ==> spm_vol>subfunc2 at 71
V = subfunc1(P);
Error in ==> spm_vol at 57
V = subfunc2(P);
Error in ==> spm_config_factorial_design>run_stats at 1676
VM = spm_vol(char(job.masking.em));
Error in ==> spm_jobman>run_struct1 at 1474
feval(prog,val);
Error in ==> spm_jobman>run_struct1 at 1482
run_struct1(c.val{i});
Error in ==> spm_jobman>run_struct1 at 1482
run_struct1(c.val{i});
Error in ==> spm_jobman>run_job at 417
run_struct1(c);
Error in ==> spm_jobman at 79
run_job(varargin{2});
Error in ==> spmFLvl2Factory at 199
spm_jobman('run',jobs);
>>
|