Ah, I forgot about this one ...
This error has to do with the fact that in SPM5 the absolute paths are
saved in the xCon structure and elsewhere and the version of my spm_getSPM
that you are using is still good for SPM2. Therefore, please change line
670 in the file from
Vm = spm_vol(fullfile(mSPM.swd,mSPM.xCon(i).Vspm.fname));
to
Vm = spm_vol(mSPM.xCon(i).Vspm.fname);
and you should be all set.
Cheers,
Jan
PS: I will cc this email to the email list in case others are using it as well.
Greig de Zubicaray wrote:
> Dear Jan,
>
> I've just started playing with your modified spm_getSPM.m for masking
> with other contrasts that you posted to the SPM list some time ago:
>
> http://www.jiscmail.ac.uk/cgi-bin/wa.exe?A2=ind0703&L=SPM&P=R1823&I=-3
> <http://www.jiscmail.ac.uk/cgi-bin/wa.exe?A2=ind0703&L=SPM&P=R1823&I=-3>
>
> and have run into an error:
>
>> SPM computation : ...initialising
>> ...masking??? Error using ==> spm_vol>subfunc
>> /Volumes/Disk2/MOTION/GROUP/MOVE/All/Volumes/Disk2/MOTION/GROUP/MOVE/All/spmT_0001.img:
>> 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_getSPM at 670
>> Vm =
>> spm_vol(fullfile(mSPM.swd,mSPM.xCon(i).Vspm.fname));
>>
>> Error in ==> spm_results_ui at 274
>> [SPM,xSPM] = spm_getSPM;
>>
>> ??? Error while evaluating uicontrol Callback.
>
> Not being a matlab afficionado I can only guess that the problem relates
> to the duplicating of the directory name above?
>
> Do you have a more recent version that I might have?
>
> thanks,
>
> Greig
>
>
> __
> Dr Greig de Zubicaray
> Senior Research Fellow
> fMRI Laboratory, Centre for Magnetic Resonance
> University of Queensland, QLD 4072, Australia
> Tel: (+617) 3365 4100 (Office)
> (+617) 3365 4250 (B106, Ritchie Building)
> Fax: (+617) 3365 3833
> fMRI Lab Page: http://www.fmrilab.net
>
>
--
Jan Gläscher, Ph.D. Div. Humanities & Social Sciences
+1 (626) 395-3898 (office) Caltech, Broad Center, M/C 114-96
+1 (626) 395-2000 (fax) 1200 California Blvd
[log in to unmask] Pasadena, CA 91125
|