Hi, the problem is exactly what the error messages describe. Your data and bvals/bvecs have different number of entries (72 vs 144). Have you done some averaging of the data (e.g. 2 repeats)? Then you should only keep hald of the bvals/bvecs entries. Cheers Stam On 20 Mar 2013, at 12:38, SUBSCRIBE FSL L.Kalmbach wrote: > Hello all. > > I started preprocessing my data and I got the following error using DTIFIT: > " Terminate called after throwing an instance of 'NEWMAT::IndexException'" > Then I checked with bedpostx_datacheck my fsl_analysis directory: > I got the following output: > > > fsl_analysis/data > data_type INT16 > dim1 96 > dim2 96 > dim3 63 > dim4 72 > datatype 4 > pixdim1 2.3958332539 > pixdim2 2.3958332539 > pixdim3 2.0000724792 > pixdim4 1.0000000000 > cal_max 0.0000 > cal_min 0.0000 > file_type NIFTI-1+ > > fsl_analysis/nodif_brain_mask > data_type INT16 > dim1 96 > dim2 96 > dim3 63 > dim4 1 > datatype 4 > pixdim1 2.3958332539 > pixdim2 2.3958332539 > pixdim3 2.0000724792 > pixdim4 1.0000000000 > cal_max 0.0000 > cal_min 0.0000 > file_type NIFTI-1+ > > num lines in fsl_analysis/bvals > 1 > num words in fsl_analysis/bvals > 144 > num lines in fsl_analysis/bvecs > 3 > num words in fsl_analysis/bvecs > 432 > number of elements in bvals is not equal to number of vols in data > number of vectors in bvecs is not equal to number of vols in data > > > > Okay, then I checked the bvecs and bvals but they have the same number of elements.... Do I have to normalize them to unisize and if how? or is there another problem? > > I would be very thankful for your help :) > > > Thanks and Cheers > > Lys >