DPARSFA新版跑Dartel出错

各位先进:

我又来问问题了
谢谢严老师之前的回复,前几个在论坛提出的问题都解决了。但是最近在跑Dartel的时候出了问题如下:
请各位高手在解答,感激不尽

Running DARTEL: Create Template.

------------------------------------------------------------------------
Running job #2
------------------------------------------------------------------------
Running 'Run DARTEL (create Templates)'
Continuing registration from pre-existing parameters (/Users/fynn_chang/Documents/Motion_ADHD-Control_scrubbed_20120214/T1ImgNewSegment/Con0001/u_rc1s6335-0039-00001-000001-01_Template.nii)
Failed 'Run DARTEL (create Templates)'
Undefined function or method 'file2mat' for input arguments of type 'struct'.
In file "/Users/fynn_chang/Documents/MATLAB/REST_V1.7_120101/rest_spm5_files/@file_array/subsref.m" (v315), function "subfun" at line 80.
In file "/Users/fynn_chang/Documents/MATLAB/REST_V1.7_120101/rest_spm5_files/@file_array/subsref.m" (v315), function "subsref" at line 60.
In file "/Users/fynn_chang/Documents/MATLAB/REST_V1.7_120101/rest_spm5_files/@nifti/subsref.m" (v253), function "rec" at line 219.
In file "/Users/fynn_chang/Documents/MATLAB/REST_V1.7_120101/rest_spm5_files/@nifti/subsref.m" (v253), function "rec" at line 232.
In file "/Users/fynn_chang/Documents/MATLAB/REST_V1.7_120101/rest_spm5_files/@nifti/subsref.m" (v253), function "subsref" at line 45.
In file "/Users/fynn_chang/Documents/MATLAB/spm8/toolbox/DARTEL/spm_dartel_template.m" (v4064), function "spm_dartel_template" at line 64.

The following modules did not run:
Failed: Run DARTEL (create Templates)

??? Error using ==> cfg_util at 835
Job execution failed. The full log of this run can be found in MATLAB command window, starting with the lines (look
for the line showing the exact #job as displayed in this error message)
------------------
Running job #2
------------------

Error in ==> spm_jobman at 217

Error in ==> DPARSFA_run at 1092

Error in ==> DPARSFA>pushbuttonRun_Callback at 1133

Error in ==> gui_mainfcn at 96

Error in ==> DPARSFA at 31

??? Error while evaluating uicontrol Callback

怀疑是SPM8添加path的时候没有Add with subfolders。

严老师:

试著把Rest, dparsfa, 及spm8 全部从新add with subfolders,仍然出现如上错误的说明。
我是从FunImgAR开始跑的,
用的是matlab 2010a
affine regularization 选 east asian
normalized voxel 2x2x2,
bounding box as default
normalized by Dartel
smooth by dartel, FWHM 6 6 6

再请您帮忙,感激不尽

OK, 我想大概知道怎么回事了。
对于SPM,add with subfolders
对于REST和DPARSF,不要add with subfolders,只add folder
这样你试一下,我想大概能够成功运行。