Hi,
I was trying to run the spm_Deformations.m file in order to write out the
determinant of the jacobian at each voxel. However, when I try to do this, I
get the following error:
SPM99: spm_Deformations (v%A%) 16:23:54 - 12/07/2001
=======================================================================
??? Index exceeds matrix dimensions.
Error in ==> /home/sphacdm/spm_Deformations.m (get_jacobian)
On line 320 ==> tbx = reshape(
reshape(Transform(:,1),Dims(2,1)*Dims(2,2),Dims(2,3)) *bbZ', Dims(2,1),
Dims(2,2) );
Error in ==> /home/sphacdm/spm_Deformations.m (write_det)
On line 216 ==> A = get_jacobian(sn3d, VO(1,1), p);
Error in ==> /home/sphacdm/spm_Deformations.m
On line 165 ==> write_det(sn3d(i),Vox,bb);
I selected the Default Bounding Box, and voxel size of 1x1x2, which was what
I used for the spatial normalisation.
Any help would be much appreciated,
Thanks
Xavier
|