Hi Joaquin,
I can't really help I'm afraid, as I don't have access to Matlab2006b.
I'd suggest you try to narrow down the problem a bit, as it might be
the case that there is a simple fix...
Instead of estimating a model, try simpler things, like viewing the
images with check reg, or reading them in with something like
file = spm_get(1, '*.img');
V = spm_vol(file);
img = spm_read_vols(V);
voxel = spm_sample_vol(V, 1,1,1,0);
Try rebuilding the .mex files (this is my best guess at the moment),
you might just be able to type "make" (at the shell, not Matlab
prompt) within the spm2 directory, but if this doesn't work (or if
you're on Windows) you'll have to search for info on rebuilding mex
files (search MATLAB help as this is a general non-SPM-specific thing)
Best,
Ged.
<Joaquin> <Anguera> wrote:
> Hello all,
> I've recently upgraded to MATLAB R2006b, however, I've come to the
> realization that something isn't working quite now in SPM2 as when I
> estimate a statistical model, or even when I'm trying to set one up, SPM2
> crashes with an error message saying that it can't open the smoothed image
> file. The following is the error message given when trying to estimate a
> one sample T-test:
>
> ??? Cant open image file.
>
> Error in ==> spm_est_smoothness at 87
> d = spm_sample_vol(VM, x, y, z, 0);
>
> Error in ==> spm_spm at 879
> [FWHM,VRpv] = spm_est_smoothness(VResI,VM);
>
> ??? Error using ==> SPM = spm_spm;
> Cant open image file.
>
> I've done a few searches, and seen that some folks say that SPM2 just isn't
> supported by this version of MATLAB,
>
> http://en.wikibooks.org/wiki/SPM-Which_version_of_MATLAB%3F
>
> ....but I'm curious as to whether or not there is a simple patch that could
> be done to alleviate the problem. Has anybody else run into this problem,
> and (hopefully) figured out a way to get around it?
>
> Any and all thoughts/suggestions/answers would be greatly appreciated!
>
> Joaquin A Anguera
> Division of Kinesiology
> University of Michigan
> [log in to unmask]
>
|