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
>
>
|