Browse code

radius frontend enabled, fixed backend problems. radius working

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

Christoph Budziszewski authored on18/03/2009 14:50:47
Showing1 changed files
... ...
@@ -1,19 +1,24 @@
1 1
 function scoords = getSubjectCoordinates(gcoords,map)
2 2
 m = java.util.HashMap ;
3 3
 
4
+%build lookuptable
4 5
 for i = 1:numel(map.names)
5 6
     key = cell2mat(map.names(i));
6 7
     val = map.coords(i,:);
7 8
     m.put(key,val);
8 9
 end
9 10
 
11
+% do the lookup
10 12
 scoords = [];
11
-
12 13
 for c = 1:numel(gcoords)
13 14
     key = strtrim(gcoords(c).name);
14 15
     val = m.get(key)';
15
-    mod = gcoords(c).mod;
16
-    scoords = [scoords; val+mod];
16
+%     mod = gcoords(c).mod;
17
+%     scoords = [scoords; val+mod];
18
+    co = struct;
19
+    co.coord = val;
20
+    co.rad = gcoords(c).rad;
21
+    scoords = [scoords; co];
17 22
 end
18 23
 
19 24
 end
20 25
\ No newline at end of file
Browse code

coordTabel works for JZ006

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

Christoph Budziszewski authored on25/02/2009 15:49:55
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,19 @@
1
+function scoords = getSubjectCoordinates(gcoords,map)
2
+m = java.util.HashMap ;
3
+
4
+for i = 1:numel(map.names)
5
+    key = cell2mat(map.names(i));
6
+    val = map.coords(i,:);
7
+    m.put(key,val);
8
+end
9
+
10
+scoords = [];
11
+
12
+for c = 1:numel(gcoords)
13
+    key = strtrim(gcoords(c).name);
14
+    val = m.get(key)';
15
+    mod = gcoords(c).mod;
16
+    scoords = [scoords; val+mod];
17
+end
18
+
19
+end
0 20
\ No newline at end of file