As already mentioned, the problem seems due to little mess-up during install. Here are few more details.
Can you pleae check your spm5b/@nifti/private directory. There should be altogether 19 files (with and without updates, because the update patches one of the exiting files i.e. read_extra.m). Among these is write_hdr_raw.m.
A short-cut solution would be to make sure [log in to unmask] exits. You can extract this single file from either spm5b or spm5 tar-ball (since its the same in both, except for an extra comment here and there)
I am still curious why write_hdr_raw.m is missing!
Hope this helps.
> ----- Original Message -----
> From: "Volkmar Glauche" <[log in to unmask]>
> To: [log in to unmask]
> Subject: [SPM] Function/file not found after SPM updates - was Re: [SPM] write_hdr_raw error
> Date: Fri, 28 Apr 2006 17:21:45 +0200
>
>
> Mithun,
> ... after re-reading your message ...
> I think, you have hit a problem with the way you install the updates: You
> have to unpack the updates into your SPM5 directory - overwriting the
> original files. Prepending the update directory to your MATLAB path before
> the SPM directory is not working for the MATLAB objects (that reside in
> directories with a @-name).
> So - if you want to update SPM, do it in place!
>
> Volkmar
>
> On Fri, 28 Apr 2006, Mithun Mukherjee wrote:
>
> > Volkmar Glauche wrote:
> > > On Fri, 28 Apr 2006, Mithun Mukherjee wrote:
> > > > > > Hi SPMers
> > > > > > I'm using an Apple G5 with Mac OSX 10.4.
> > > > I downloaded and compiled SPM5b without errors. I also downloaded the
> > > > SPM
> > > > Updates/ Bug fixes (Updates_456) .
> > > > > > You should probably download SPM5 and not SPM5b. Then
> > apply the updates
> > > again to SPM5, and you should be fine.
> > > > Thanks for your note Volkmar, but with SPM5 and the updates,
> > the error still
> > persists. That was the reason I moved to SPM5b.
> > Grep'ing for "write_hdr_raw" does not seem to find anything either.
> >
> > Thanks for your help.
> > > > My problem is that when trying to segment (and normalise) an image,
> > > > the
> > > > process seems to run right through until the very end when I get an
> > > > error
> > > > related to a function "write_hdr_raw" that does not exist anywhere
> > > > and is
> > > > called from create.m in the Updates_456/@nifti directory.
> > > > > > Is this a Mac related bug ?
> > > > > > Thanks for your help.
> > > > Mithun
> > > > > > > > SPM present working directory:
> > > > /Applications/MATLAB701
> > > > --------------------------
> > > > Running "Segment"
> > > > ??? 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_create_vol>create_vol at 152
> > > > create(N);
> > > > > > Error in ==> spm_create_vol at 16
> > > > v = create_vol(V(i));
> > > > > > Error in ==> spm_preproc_write>preproc_apply at 96
> > > > VB = spm_create_vol(VB);
> > > > > > Error in ==> spm_preproc_write at 24
> > > > preproc_apply(p(i),opts,b0);
> > > > > > Error in ==> spm_config_preproc>execute at 478
> > > > spm_preproc_write(sn,job.output);
> > > > > > Error in ==> spm_jobman>run_struct1 at 1384
> > > > feval(prog,val);
> > > > > > Error in ==> spm_jobman>run_struct1 at 1392
> > > > run_struct1(c.val{i});
> > > > > > Error in ==> spm_jobman>run_struct1 at 1392
> > > > run_struct1(c.val{i});
> > > > > > Error in ==> spm_jobman>run_struct at 1351
> > > > run_struct1(c);
> > > > > > ??? Error while evaluating uicontrol Callback.
> > > > > > > > > > > >
>
> --
> Volkmar Glauche
> -
> Department of Neurology [log in to unmask]
> Universitaetsklinikum Freiburg Phone 49(0)761-270-5331
> Breisacher Str. 64 Fax 49(0)761-270-5416
> 79106 Freiburg
>
--
Ahmed,
Graduate Student
E204, CoIL, AI Lab
Department of Computer and Information Sciences
University of Hyderabad
P.O. Central University, Gachibowli, Hyderabad
Andhra Pradesh 500046, INDIA
Tel : +91-40-23134014
Fax : +91-40-23010780 (ATTN: Ahmed)
--
_______________________________________________
Search for businesses by name, location, or phone number. -Lycos Yellow Pages
http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10
|