Error in running "AFQ_example.m"

89 views
Skip to first unread message

Zhongrui Huang

unread,
Sep 4, 2022, 10:46:27 PM9/4/22
to Automated Fiber Quantification (AFQ)
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:
error information.png

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

Maryana Daood

unread,
Mar 6, 2024, 7:04:18 AM3/6/24
to Automated Fiber Quantification (AFQ)
Hello  ZhongruiHuang,

Were you able to solve this problem? 
I'm encountering the same problem when I run AFQ_example.m and also AFQ_run.m 
I don't think the problem is one volume, because when I try to run it on my data that has multiple volume, I encounter the same problem.
I would appreciate your insights on the matter.  

Thank you,
Maryana
Reply all
Reply to author
Forward
0 new messages