function spm_SVMCrossVal(varargin) %define global constants global USE_DRIVE_CHECK_HACK; USE_DRIVE_CHECK_HACK = 1; %enables subroutine to check if image path starts with 'D' global CROSSVAL_METHOD_DEF; CROSSVAL_METHOD_DEF.svmcrossval = 'svm crossval'; CROSSVAL_METHOD_DEF.classPerformance = 'svm class performance'; CROSSVAL_METHOD_DEF.crossSubject = 'svm across subject testing'; CROSSVAL_METHOD_DEF.somTraining = 'som Training'; global VOXEL_SELECTION_MODE_DEF; VOXEL_SELECTION_MODE_DEF.manualGui = 'manually defined in GUI'; VOXEL_SELECTION_MODE_DEF.roiImage = 'use ROI image and popup image selector'; switch nargin case 0 % project_UI; main_UI(varargin); case 1 main_UI(varargin); otherwise error('spm_SVMCrossVal:main','wrong nargin'); end end