Hi Cyril,
I think you just need the V.fname string to have the extension at the
end. For SPM2 I think this could be .img for Analyze or .mnc for MINC.
For SPM5 use either .nii or .img, depending on whether you want single
file NIfTI or split hdr+img NIfTI (NB not Analyze, though perhaps back
compatible with most software). E.g. V.fname = 'blah.nii';
Shout if that's not the problem,
Ged.
cyril pernet wrote:
> Hi there,
>
> apart from my linear/exponential stuff I receive a weird error from
> spm_write_vol
>
> I used spm_write_vol(V,Y)
> Y are the data
> V the info as specified in spm_read_vols
>
> then I receive
> Error using spm_create_vol
> "" is not a recognized extension
> error in spm_create_vol at 16
> v = spm_create_vol(V);
>
> I guess I need to specify somewhere the extension but I can't figure out
> where ..
> Any idea?
>
> Cheers
> Cyril
>
|