spm_SVMCrossVal.m
ac32ecd5
 function spm_SVMCrossVal(varargin)
e370a509
 
9e39a52b
 %Enter the base directory of your SPM installation
4b81e19c
 global SVMCROSSVAL_SPMDIR;
562fc783
 SVMCROSSVAL_SPMDIR = '/home/chris/MATLAB/lib/SPM8';
9e39a52b
 %Enter the SPM version string. Like 'SPM2', 'SPM5', 'SPM8'
 global SVMCROSSVAL_SPMVERSION;
562fc783
 SVMCROSSVAL_SPMVERSION = 'SPM8';
9e39a52b
 
48fb1827
 %external tools
 global NODALYZE_LIBSVM;
 NODALYZE_LIBSVM = 'libsvm-mat-2.88-1';
 global NODALYZE_SOMTOOLBOX;
 NODALYZE_SOMTOOLBOX = 'somtoolbox2';
 global NODALYZE_NIFTI;
 NODALYZE_NIFTI = 'NIFTI_20090325';
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
9e39a52b
 % No Config from here
 if strcmp(SVMCROSSVAL_SPMDIR,'') || strcmp(SVMCROSSVAL_SPMVERSION,'')
     error('spm_SVMCrossVal:main:noinstall','installation not complete!');
 end
 
 global SVMCROSSVAL_DEBUG;
 
 defineGlobals();
de857369
 bootstrap('default');
4b81e19c
 
ac32ecd5
 switch nargin
4b81e19c
     case 0
         SVMCROSSVAL_DEBUG = 0;
         ui_main();
     case 1
         SVMCROSSVAL_DEBUG = varargin(1);
         ui_main();
ac32ecd5
 otherwise
 error('spm_SVMCrossVal:main','wrong nargin');
 end
 end
 
2095645b