Hi David,
did you install the latest updates for SPM5? If yes, how and where?
You have to install them into your SPM5 software folder, overwriting
old files. Unpacking them into another folder in your MATLAB path will
not work.
Volkmar
Quoting David Kideckel <[log in to unmask]>:
> Dear SPMers,
>
> I am having a problem with reorienting my images in SPM5. I am receiving the
> following error:
> Running "Display Image"
> ??? Undefined command/function 'write_hdr_raw'.
>
> Error in ==> nifti.create>create_each at 27
> ok = write_hdr_raw(fname,obj.hdr,dt(end-1)=='B');
>
> Error in ==> nifti.create at 15
> create_each(obj(i));
>
> Error in ==> spm_get_space at 54
> create(N);
>
> Error in ==> spm_image at 200
> spm_get_space(P(i,:),mat*Mats(:,:,i));
>
> ??? Error while evaluating uicontrol Callback.
>
> I have checked the archives, and a response to a similar question was posted
> by Volkmar:
>
> Carlos,
>
> just a guess: check, that
> 1) the image does indeed exist in this place
> 2) you have write permissions on these image files (.img+.hdr)
> 3) there are no blanks or non-US-ASCII characters in the file or
> directory names (I don't know whether this is an issue anymore, but
> certainly it was for older MATLAB versions)
>
> Volkmar
>
>
> None of these are relevant for me. Can somebody please help! Why is this
> happening?
>
> I look forward to hearing from you, experts!
>
> David Kideckel
> PhD Student, University of Toronto
> Toronto, Canada
|