报错

老师您好
    我重新安装了MATLAB7.7,和SPM5等其他软件,运用DPARSF时报错如下,请您看下怎么处理

>> DPARSF
Removing First 10Time Points:Sub100 OK
Slice Timing Setup:Sub100 OK
??? Undefined function or method 'cfg_util' for input arguments of type 'cell'.

Error in ==> spm_jobman at 202
            cjob = cfg_util('initjob', mljob);

Error in ==> DPARSF_run at 215
        spm_jobman('run',jobs{1});

Error in ==> DPARSF>pushbuttonRun_Callback at 841
    [Error]=DPARSF_run(handles.Cfg);

Error in ==> gui_mainfcn at 96
        feval(varargin{:});

Error in ==> DPARSF at 33
    gui_mainfcn(gui_State, varargin{:});
 
??? Error while evaluating uicontrol Callback
 

Hi!
It's caused by SPM8.
Please intall the latest DPARSF which is compatible to SPM8.
Best wishes!

我重新安装了DPARSF,抱错如下:
>> DPARSF
Warning: String(s) not found
> In seqmatch at 88
  In DPARSF>listSubjectID_KeyPressFcn at 240
  In gui_mainfcn at 96
  In DPARSF at 33
Removing First 10Time Points:sub001 OK
Slice Timing Setup:sub001 OK
Warning: In the directory "D:\SPM5", spm_unlink.mexw32 now shadows spm_unlink.dll.
 Please see the MATLAB 7.1 Release Notes.
> In spm_config at 215
  In spm_jobman>initialise_struct at 2426
  In spm_jobman>run_job at 480
  In spm_jobman at 89
  In DPARSF_run at 212
  In DPARSF>pushbuttonRun_Callback at 841
  In gui_mainfcn at 96
  In DPARSF at 33
Warning: In the directory "D:\SPM5", spm_global.mexw32 now shadows spm_global.dll.
 Please see the MATLAB 7.1 Release Notes.
> In spm_config at 215
  In spm_jobman>initialise_struct at 2426
  In spm_jobman>run_job at 480
  In spm_jobman at 89
  In DPARSF_run at 212
  In DPARSF>pushbuttonRun_Callback at 841
  In gui_mainfcn at 96
  In DPARSF at 33
--------------------------
Running "Slice Timing"
Warning: In the directory "D:\SPM5", spm_slice_vol.mexw32 now shadows spm_slice_vol.dll.
 Please see the MATLAB 7.1 Release Notes.
> In spm_config_slice_timing>slicetiming at 170
  In spm_jobman>run_struct1 at 1587
  In spm_jobman>run_struct1 at 1597
  In spm_jobman>run_struct1 at 1597
  In spm_jobman>run_job at 482
  In spm_jobman at 89
  In DPARSF_run at 212
  In DPARSF>pushbuttonRun_Callback at 841
  In gui_mainfcn at 96
  In DPARSF at 33

SPM5: spm_slice_timing (v$Rev: 671 $)              11:51:07 - 30/11/2009
========================================================================
Warning: Cant get default Analyze orientation - assuming flipped
> In spm_flip_analyze_images at 13
  In @nifti\private\mayo2nifti1 at 46
  In nifti.nifti at 31
  In spm_vol_nifti at 16
  In spm_vol>subfunc at 141
  In spm_vol>subfunc1 at 87
  In spm_vol>subfunc2 at 73
  In spm_vol at 57
  In spm_slice_timing at 130
  In spm_config_slice_timing>slicetiming at 170
  In spm_jobman>run_struct1 at 1587
  In spm_jobman>run_struct1 at 1597
  In spm_jobman>run_struct1 at 1597
  In spm_jobman>run_job at 482
  In spm_jobman at 89
  In DPARSF_run at 212
  In DPARSF>pushbuttonRun_Callback at 841
  In gui_mainfcn at 96
  In DPARSF at 33
Your TR is 2.0
Warning: Cant get default Analyze orientation - assuming flipped
> In spm_flip_analyze_images at 13
  In @nifti\private\mayo2nifti1 at 46
  In nifti.nifti at 31
  In spm_vol_nifti at 16
  In spm_vol>subfunc at 141
  In spm_vol>subfunc1 at 87
  In spm_vol>subfunc2 at 73
  In spm_vol at 57
  In spm_slice_timing at 172
  In spm_config_slice_timing>slicetiming at 170
  In spm_jobman>run_struct1 at 1587
  In spm_jobman>run_struct1 at 1597
  In spm_jobman>run_struct1 at 1597
  In spm_jobman>run_job at 482
  In spm_jobman at 89
  In DPARSF_run at 212
  In DPARSF>pushbuttonRun_Callback at 841
  In gui_mainfcn at 96
  In DPARSF at 33

Hi! 你粘上来的都是warning,报error是在哪一步呢?

   我用的是MATLAB7.7和REST1.3,运行DPARSF就出现这个warning,然后运行到normalize这一步报错如下,无法作Smooth
Printing Graphics Windows to
D:\Analysis\FunImg\spm_2009Dec02.ps
Saving Parameters..
Moving Normalized Files:sub001 OK
??? Undefined function or method 'rest_misc' for input arguments of type 'char'.

Error in ==> DPARSF_rest_sliceviewer at 582
 rest_misc( 'DisplayLastException');

Error in ==> DPARSF_rest_sliceviewer at 27
  varargout{1}=DPARSF_rest_sliceviewer('ShowImage',''); %by Default, I show a black brain image

Error in ==> DPARSF_run at 458
    h=DPARSF_rest_sliceviewer;

Error in ==> DPARSF>pushbuttonRun_Callback at 841
    [Error]=DPARSF_run(handles.Cfg);

Error in ==> gui_mainfcn at 96
        feval(varargin{:});

Error in ==> DPARSF at 33
    gui_mainfcn(gui_State, varargin{:});
 
??? Error while evaluating uicontrol Callback
 

Hi!
 看起来你并未正确地把REST添加到MATLAB的搜索路径中。
请参考:http://purple-rill.blog.sohu.com/84275735.html:

首先把主界面调出来, 有两种方式,一种是在命令窗口输入pathtool,另一种是在matlab菜单调用(File -> Set Path…)。打开主界面后,相信不用太多解释了。Add Folder… 或者 Add with subfolders… 就可以了,添加完毕后,如果需要保存该路径,则在close前save一下就可以了。

   终于顺利的跑了一遍数据,原来就那么小个问题折磨了我那么久,呵呵,谢谢严老师!