Thanks for the quick reply, Chris, but it doesn't work for me. I tried
doing that, and I also tried just skipping the 'job' assignment
statement and passing in the xSPM as the second argument to
spm_results_ui. In both cases, it just popped up the 'Select SPM.mat'
file dialog and continued on to the rest of the GUI options.
Does anyone know what I'm missing here?
-Yoni
On 3/30/2010 3:36 PM, Chris Watson wrote:
> 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.
|