Here's what I have in a script (using SPM5):
job = struct(...
'swd', SPM.swd, ...
'Ic', 1, ...
'u', thresh, ...
'Im', [], ...
'thresDesc', threshdesc, ...
'title', SPM.xCon.name, ...
'k', extent);
[hReg, xSPM, SPM] = spm_results_ui('setup', job);
Yonatan Mazuz wrote:
> Hello everyone,
>
> Of course, pardon me if this has been asked before, but I’m trying to figure out if there’s a quicker way to re-open the results window for a particular contrast after I’ve arrived at it through the GUI.
>
> After I click “Results” and specify my Contrast and options for Mask, ROI, Correction, Threshold, and Voxel Extent, it seems as though all my choices get assigned into the workspace’s xSPM struct. I can’t figure out, though, if there are any built-in SPM functions that take this struct as an argument and re-create the results window and Matlab workspace without my having to go through every choice in the GUI again.
>
> I haven’t dug through every single function, but it doesn’t seem doable with spm_results_ui, at least in SPM5. Can it be done? I prefer SPM5 compatible solutions, since the labs I’m in have some custom scripts that haven’t been fully tested with SPM8, but I can probably use switch between versions if an SPM8 solution saves me enough GUI-clicking time.
>
> Thanks,
> Yoni
>
>
> Yonatan Mazuz
> Cabeza Lab and Woldorff Lab
> Center for Cognitive Neuroscience
> Duke University
>
|