Browse code

moved helpercode to private

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

Christoph Budziszewski authored on07/01/2009 09:24:55
Showing1 changed files
1 1
deleted file mode 100644
... ...
@@ -1,18 +0,0 @@
1
-%timePointToImageNumber type is optional
2
-function imgNumber = timePointToImageNumber(timepoint, type)% timepoint in ms
3
-    switch type
4
-        case 's'
5
-            imgNumber = timePointToImageNumber(timepoint*1000,'ms');
6
-            return;
7
-        case 'ms'
8
-            imageTimeResolution   = 2000; %ms
9
-            imgNumber = round(timepoint/imageTimeResolution);
10
-            return;
11
-        case 'image'
12
-            imgNumber = timepoint;
13
-            return;
14
-        otherwise
15
-            imgNumber = timePointToImageNumber(timepoint,'ms');
16
-            return;
17
-    end
18
-end
19 0
\ No newline at end of file
Browse code

SVMCrossVal toolbox init

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

Christoph Budziszewski authored on17/12/2008 13:45:29
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,18 @@
1
+%timePointToImageNumber type is optional
2
+function imgNumber = timePointToImageNumber(timepoint, type)% timepoint in ms
3
+    switch type
4
+        case 's'
5
+            imgNumber = timePointToImageNumber(timepoint*1000,'ms');
6
+            return;
7
+        case 'ms'
8
+            imageTimeResolution   = 2000; %ms
9
+            imgNumber = round(timepoint/imageTimeResolution);
10
+            return;
11
+        case 'image'
12
+            imgNumber = timepoint;
13
+            return;
14
+        otherwise
15
+            imgNumber = timePointToImageNumber(timepoint,'ms');
16
+            return;
17
+    end
18
+end
0 19
\ No newline at end of file