Hi Nicola,
I just ran into the same problem as what you describe in your post of
about 6 weeks ago.
Perhaps you already solved the problem, but in case you haven't, this is
what does the trick for me.
The problem arises after you download updates for spm5, and put them in
a folder above the main spm5 folder. Namely, this updates folder will
contain a folder '@nifti' which has a 'private' subfolder. Now, when the
routine 'create.m' is called (from spm5/updates/@nifti), it wants to
execute the private function ''write_hdr_raw.m' which it cannot find.
That is because it only looks in its own private folder, and not the
private folder of the original [log in to unmask]
One solution to the problem would be to copy all files from spm5/@nifti
to spm5/updates/@nifti, while not overwriting anything (so that the
updates @nifti-routines stay in place). But perhaps there are more
elegant ways?
Kind regards,
Floris
n which a folder private resides. Now, since a file within the updated
@nifti folder looks for the function write_hdr_raw,
>Dear Spmers,
>I am testing some pre-processing with the new batch-mode in Spm5. My first
>step is slice-timing (being my slices acquired interleaved), but as soon as
>I press the "Run" button I get the following error message:
>
>--------------------------
>Running "Slice Timing"
>
>SPM: spm_slice_timing (v$Rev: 112 $) 12:17:01 - 05/03/2006
> =======================================================================
>Your TR is 2.0
>??? Undefined command/function 'write_hdr_raw'.
>
>??? Error while evaluating uicontrol Callback.
>
>
>I'm using the final release of Spm5, with Matlab 7.1 (SP3), running on
>Windows Xp on a Pentium processor. I have installed the latest updates, and
>the matlab-path is set properly :-)..
>
>Any suggestion?
>
>Thanks in advance,
> nic
>
|