Add a Toolbox to Matlab

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值