yeatmanlab / AFQ

Automated Fiber Quantification
74 stars 52 forks source link

error in runing the AFQ_example #38

Closed wangkangcheng closed 3 years ago

wangkangcheng commented 3 years ago

Hi experts, When I run the AFQ example (without any changes of script) with matlab 2017b, it report the following errors. Is that the problem of matlab version or others ?

Thanks

Error in nanmean (line 7) N = sum(~isnan(x), dim);

Error in AFQ_SegmentFiberGroups (line 265) fp(ii,jj) = nanmean(p([fiberCoord:fiberCoord+fgLen(jj)-1]));

Error in AFQ_example (line 41) fg_classified = AFQ_SegmentFiberGroups(dt, wholebrainFG);

wangkangcheng commented 3 years ago

solved. I change the 265 line (AFQ_SegmentFiberGroups.m )into the following. fp(ii,jj) = nanmean(p([fiberCoord:fiberCoord+fgLen(jj)-1]),2);