annotate toolboxes/MIRtoolbox1.3.2/somtoolbox/som_use_vs1.m @ 0:cc4b1211e677 tip

initial commit to HG from Changeset: 646 (e263d8a21543) added further path and more save "camirversion.m"
author Daniel Wolff
date Fri, 19 Aug 2016 13:07:06 +0200
parents
children
rev   line source
Daniel@0 1 function som_use_vs1()
Daniel@0 2
Daniel@0 3 % SOM_USE_VS1 Use SOM Toolbox version 1.
Daniel@0 4 %
Daniel@0 5 % Removes SOM Toolbox version 2 from the path and adds version 1 there
Daniel@0 6 % instead. Before doing this, remember to convert any version 2 structs you
Daniel@0 7 % will need to the corresponding version 1 structs using function SOM_VS2TO1.
Daniel@0 8 %
Daniel@0 9 % See also SOM_USE_VS2, SOM_VS1TO2, SOM_VS2TO1, PATHTOOL.
Daniel@0 10
Daniel@0 11 rmpath /share/somtoolbox/www/package/codes2
Daniel@0 12
Daniel@0 13 s=path;
Daniel@0 14 p=findstr(s,'/share/matlab5'); p=p(1);
Daniel@0 15 i=p+12; while ~strcmp(s(i),'/'), i=i+1; end
Daniel@0 16 r=strcat(s(p:i),'toolbox/somtoolbox');
Daniel@0 17 addpath(r)
Daniel@0 18
Daniel@0 19 fprintf(1,'Version 1 of SOM Toolbox now in use.\n');
Daniel@0 20 fprintf(1,'Use som_vs2to1 function to convert any vs2 structs to vs1.\n')