Browse code

almost all "change study" features implemented. needs testing.

git-svn-id: https://svn.discofish.de/MATLAB/spmtoolbox/SVMCrossVal@199 83ab2cfd-5345-466c-8aeb-2b2739fb922d

Christoph Budziszewski authored on30/07/2009 18:46:52
Showing1 changed files
... ...
@@ -4,8 +4,8 @@ switch getSPMVersion
4 4
     case 'SPM5'
5 5
         filter = '^.*\.hdr$';
6 6
         [files, dirs] = spm_select('List', fullfile(subjectDir,'a'), filter);
7
-%     case 'SPM2'
8
-%         files = 'swrfandersen-0003-00001-000001.hdr';
7
+    case 'SPM2x'
8
+        files = 'swrfandersen-0003-00001-000001.hdr';
9 9
     otherwise
10 10
         filter = '^.*\.hdr$';
11 11
         files = getFilteredFileList(fullfile(subjectDir,'a'),filter,0);
... ...
@@ -19,4 +19,4 @@ end
19 19
 
20 20
 imageMask = unique(token);
21 21
 
22
-end
23 22
\ No newline at end of file
23
+end
Browse code

fbs save path, axels stimolos.mat

git-svn-id: https://svn.discofish.de/MATLAB/spmtoolbox/SVMCrossVal@197 83ab2cfd-5345-466c-8aeb-2b2739fb922d

Axel Lindner authored on22/05/2009 13:04:45
Showing1 changed files
... ...
@@ -4,8 +4,8 @@ switch getSPMVersion
4 4
     case 'SPM5'
5 5
         filter = '^.*\.hdr$';
6 6
         [files, dirs] = spm_select('List', fullfile(subjectDir,'a'), filter);
7
-    case 'SPM2'
8
-        files = 'swrfandersen-0003-00001-000001.hdr';
7
+%     case 'SPM2'
8
+%         files = 'swrfandersen-0003-00001-000001.hdr';
9 9
     otherwise
10 10
         filter = '^.*\.hdr$';
11 11
         files = getFilteredFileList(fullfile(subjectDir,'a'),filter,0);
Browse code

SPM2 compatibilität begonnen

git-svn-id: https://svn.discofish.de/MATLAB/spmtoolbox/SVMCrossVal@193 83ab2cfd-5345-466c-8aeb-2b2739fb922d

Christoph Budziszewski authored on20/05/2009 16:17:09
Showing1 changed files
... ...
@@ -1,9 +1,17 @@
1 1
 function imageMask = imageMaskNames(subjectDir)
2 2
 
3
-filter = '^.*\.hdr$';
4
-[files, dirs] = spm_select('List', fullfile(subjectDir,'a'), filter);
3
+switch getSPMVersion
4
+    case 'SPM5'
5
+        filter = '^.*\.hdr$';
6
+        [files, dirs] = spm_select('List', fullfile(subjectDir,'a'), filter);
7
+    case 'SPM2'
8
+        files = 'swrfandersen-0003-00001-000001.hdr';
9
+    otherwise
10
+        filter = '^.*\.hdr$';
11
+        files = getFilteredFileList(fullfile(subjectDir,'a'),filter,0);
12
+end
5 13
 
6
-for i = 1:length(files)
14
+for i = 1:size(files,1)
7 15
 %     rfiles = regexpi(files(i,:),'^.*.-','match')
8 16
     files(i,:);
9 17
     token{i} = strtok(files(i,:),'-');
Browse code

subject list from filesystem, image mask list from filesystem

git-svn-id: https://svn.discofish.de/MATLAB/spmtoolbox/SVMCrossVal@130 83ab2cfd-5345-466c-8aeb-2b2739fb922d

Christoph Budziszewski authored on13/02/2009 14:57:00
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,14 @@
1
+function imageMask = imageMaskNames(subjectDir)
2
+
3
+filter = '^.*\.hdr$';
4
+[files, dirs] = spm_select('List', fullfile(subjectDir,'a'), filter);
5
+
6
+for i = 1:length(files)
7
+%     rfiles = regexpi(files(i,:),'^.*.-','match')
8
+    files(i,:);
9
+    token{i} = strtok(files(i,:),'-');
10
+end
11
+
12
+imageMask = unique(token);
13
+
14
+end
0 15
\ No newline at end of file