Today, I downloaded the "Netlab" toolbox from google code[1]. Netlab is a toolbox basded on Matlab of algorithms of pattern recognition[2]. Most function is used for Gaussian Model, which I am working on this weekend.
While using it, how to add a toolbox to matlab is a problem. I searched online and there are several good blogs talked about it[3]. I tried one of those. It works well. Here are the steps:
1. Copy the Netlab toolbox to the directory of toolbox where you install the matlab, like "D:/matlab/R2009a/toolbox".
2. In the matlab command window, run "addpath D:/matlab/R2009a/toolbox".
3. Run "savepath". If you don't savepath, the toolbox that you added will not be recognized next time when matlab opened.
* special cases
For those people who wanna make their toolbox for public using, please do as follows[3]:
sCurrPath = fileparts(mfilename('fullpath'));
cd(sCurrPath);
addpath(genpath(sCurrPath)); %如果该工具箱没有其他子目录,则可以不需要用genpath
savepath;
* Problem exists while adding
1. No space should be existed in the dirctory. For me, I install all the software in "G:/Program Files/matlab.. ". When adding, matlab only recognizes the part before space. This depends on the version of Matlab. Mine is R2009a.
[1] http://code.google.com/p/andre-code/source/browse/trunk/MATLAB/netlab/?r=24
[2] Book: http://books.google.com/books?id=LaAAJP1ZxBsC&printsec=frontcover&dq=NETLAB+:+algorithms+for+pattern+recognitions&source=bl&ots=cRi4nVgUUg&sig=iSITwWEjTqt6-bMGT4drS3_G3Sw&hl=en&ei=lH_4TOD0HISs8AarssntAg&sa=X&oi=book_result&ct=result&resnum=2&ved=0CCgQ6AEwAQ#v=onepage&q&f=false
[3] http://blog.lehu.shu.edu.cn/smallworker/A31135.html