Browse code

starting som prediction fine-tuned class-performance visualisation

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

Christoph Budziszewski authored on21/01/2009 16:34:25
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,29 @@
1
+function som_use_vs2()
2
+
3
+% SOM_USE_VS2  Use SOM Toolbox version 2.
4
+%
5
+% Removes SOM Toolbox version 1 from the path and adds version 2
6
+% there instead. You can use function SOM_VS1TO2 to convert 
7
+% any version 1 structs to the corresponding version 2 structs.
8
+%
9
+% See also  SOM_USE_VS1, SOM_VS1TO2, SOM_VS2TO1, PATHTOOL.
10
+
11
+s=path; p=findstr(s,'somtoolbox'); 
12
+while any(p), 
13
+  p=p(1); 
14
+  i=p; while i<length(s) & ~strcmp(s(i),':'), i=i+1; end
15
+  if strcmp(s(i),':'), i=i-1; end
16
+  j=p; while j>1         & ~strcmp(s(j),':'), j=j-1; end
17
+  if strcmp(s(j),':'), j=j+1; end
18
+  r=s(j:i);
19
+  rmpath(r);
20
+  s=path; p=findstr(s,'somtoolbox'); 
21
+end
22
+
23
+addpath /share/somtoolbox/www/package/codes2
24
+
25
+fprintf(1,'Version 2 of SOM Toolbox now in use.\n');
26
+fprintf(1,'Latest changes to SOM Toolbox: August 22nd 2000\n');
27
+fprintf(1,' see /share/somtoolbox/vs2/changelog.txt\n');
28
+fprintf(1,'Use som_vs1to2 function to convert any vs1 structs to vs2.\n')
29
+