Mercurial > hg > camir-aes2014
comparison toolboxes/MIRtoolbox1.3.2/somtoolbox/som_use_vs1.m @ 0:e9a9cd732c1e tip
first hg version after svn
author | wolffd |
---|---|
date | Tue, 10 Feb 2015 15:05:51 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:e9a9cd732c1e |
---|---|
1 function som_use_vs1() | |
2 | |
3 % SOM_USE_VS1 Use SOM Toolbox version 1. | |
4 % | |
5 % Removes SOM Toolbox version 2 from the path and adds version 1 there | |
6 % instead. Before doing this, remember to convert any version 2 structs you | |
7 % will need to the corresponding version 1 structs using function SOM_VS2TO1. | |
8 % | |
9 % See also SOM_USE_VS2, SOM_VS1TO2, SOM_VS2TO1, PATHTOOL. | |
10 | |
11 rmpath /share/somtoolbox/www/package/codes2 | |
12 | |
13 s=path; | |
14 p=findstr(s,'/share/matlab5'); p=p(1); | |
15 i=p+12; while ~strcmp(s(i),'/'), i=i+1; end | |
16 r=strcat(s(p:i),'toolbox/somtoolbox'); | |
17 addpath(r) | |
18 | |
19 fprintf(1,'Version 1 of SOM Toolbox now in use.\n'); | |
20 fprintf(1,'Use som_vs2to1 function to convert any vs2 structs to vs1.\n') |