Thank you Chris.
Does this work to define a contrast on the fly, when it's not defined
previously in SPM.xCon ?
Dorian.
2009/11/24 Chris Watson <[log in to unmask]>:
> You could create a job for spm_results_ui and then just get the length of
> xSPM.Z. Something like this:
> job = struct('swd', SPM.swd, ...
> 'Ic', connum, ...
> 'u', thresh, ...
> 'Im', [], ...
> 'thresDesc', threshdesc, ...
> 'title', SPM.xCon(connum).name, ...
> 'k', k);
>
> [hReg, xSPM, SPM] = spm_results_ui('setup', job);
>
> Dorian P. wrote:
>>
>> Hi all,
>>
>> I want to extract the number of significant voxels for contrasts of
>> 1st level, which would take a long time with the GUI.
>>
>> Anybody have a script or can suggest a way to do that in command line?
>>
>> Searched the archives but couldn't find an answer.
>>
>> Thank you in advance.
>> Dorian
>>
>>
>
|