9e39a52b88add802a20772cd0b1969df4565ffdf
Christoph Budziszewski project chooser: close window

Christoph Budziszewski authored 15 years ago

1) function spm_SVMCrossVal(varargin)
Christoph Budziszewski using global variables now....

Christoph Budziszewski authored 15 years ago

2) 
Christoph Budziszewski first eventually working st...

Christoph Budziszewski authored 14 years ago

3) %Enter the base directory of your SPM installation
Christoph Budziszewski spm2 compatibility, start c...

Christoph Budziszewski authored 14 years ago

4) global SVMCROSSVAL_SPMDIR;
5) SVMCROSSVAL_SPMDIR = 'D:\SPM\spm2';
Christoph Budziszewski first eventually working st...

Christoph Budziszewski authored 14 years ago

6) %Enter the SPM version string. Like 'SPM2', 'SPM5', 'SPM8'
7) global SVMCROSSVAL_SPMVERSION;
Christoph Budziszewski spm2 compatibility, start c...

Christoph Budziszewski authored 14 years ago

8) SVMCROSSVAL_SPMVERSION = 'SPM2';
Christoph Budziszewski first eventually working st...

Christoph Budziszewski authored 14 years ago

9) 
10) % No Config from here
11) if strcmp(SVMCROSSVAL_SPMDIR,'') || strcmp(SVMCROSSVAL_SPMVERSION,'')
12)     error('spm_SVMCrossVal:main:noinstall','installation not complete!');
13) end
14) 
15) global SVMCROSSVAL_DEBUG;
16) 
17) defineGlobals();
Christoph Budziszewski spm2 compatibility, start c...

Christoph Budziszewski authored 14 years ago

18) 
Christoph Budziszewski project chooser: close window

Christoph Budziszewski authored 15 years ago

19) switch nargin
Christoph Budziszewski spm2 compatibility, start c...

Christoph Budziszewski authored 14 years ago

20)     case 0
21)         SVMCROSSVAL_DEBUG = 0;
22)         ui_main();
23)     case 1
24)         SVMCROSSVAL_DEBUG = varargin(1);
25)         ui_main();
Christoph Budziszewski project chooser: close window

Christoph Budziszewski authored 15 years ago

26) otherwise
27) error('spm_SVMCrossVal:main','wrong nargin');
28) end
29) end
30)