Hi,

I was running selxavg-sess, and met this error:


>> >> >> >> >> >> $Id: fast_selxavg.m,v 1.40.2.2 2009/04/09 20:01:57 greve Exp $
Parsing Arguments
RescaleTarget = 1000
UseMRIread = 1, ext = nii
Checking Parameters
??? Undefined function or variable "xyzscale".

Error in ==> load_nifti_hdr at 138
hdr.pixdim(2:4) = hdr.pixdim(2:4) * xyzscale;

Error in ==> load_nifti at 75
hdr = load_nifti_hdr(niftifile);

Error in ==> MRIread at 159
  hdr = load_nifti(fspec,headeronly);

Error in ==> fast_selxavg>check_params at 1529
      mri = MRIread(instem,1);

Error in ==> fast_selxavg at 51
s = check_params(s);
 
>> ??? Undefined function or variable 'r'.
 
>> quiting matlab
------------------------------------------
ERROR: fast_selxavg() failed\n
ERROR (/space/data/stan/cooked/2010/101204Castor): selxavg failed
Done...

It all goes back to the undefined "xyzscale".

Does that mean the nifti fiel I am trying to load is wrong?
This problem is quite annoying because it appearance is unpredicatable. Sometimes our analysis go through fine, sometimes it pops out, and I have no idea what is the difference from those successful runs.

Thanks,


Yang