Dear AFQ experts,
I have installed AFQ, spm8, and vistasoft on my Windows10 with MATLAB R2021a according to the installation instructions on
https://github.com/yeatmanlab/AFQ/wiki. However, when I try to run 'AFQ_example.m', the following error is returned:

After checking by single step debugging, I have three questions:
1.The results fa from dtiComputeFA are NaN.
fa = dtiComputeFA(dt.dt6);
2.The results eigVal from dtiEig is a near-zero matrix. So the fa is NaN.
[eigVec, eigVal] = dtiEig(eigVal);
3.There is only one volume in the tensors.nii(C:\Users\hzr\Desktop\CodefromOthers\AFQ\data\control_01\dti30\bin). Maybe FA couldn't be computed from tensor which has one volume.
How could I solve this problem? I would appreciate it if I could hear from you.
Yours,
ZhongruiHuang