假如,我们要安装一个工具箱名字叫“AAA”。从网上下载的下来了该工具箱的一个压缩包rar。
1)解压缩已经下载下来的该压缩包AAA.zip。会出现类似于如下文件结构的一个文件夹
/AAA
/AAA/@sss
/AAA/extras
/AAA/demos
/AAA/solvers
...
...
2)将该工具箱的文件夹复制到MATLAB的toolbox文件夹中。
3)打开MATLAB.
File->Set Path ->Add with
subfolders ->找到刚才放工具箱的目录,选择该工具箱AAA
->Save->Close. 然后重启MATLAB。
4)再使用命令 addpath(genpath('放置AAA工具箱的路径'))。
这就OK了!!!!!!!!!!!!
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
How to add a new toolbox into your MATLAB
path...
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
We suppose that adding a new toolbox named "AAA" into
the MATLAB path.
1)unzip AAA.zip. This should be
a structure like this
/AAA
/AAA/@sss
/AAA/extras
/AAA/demos
/AAA/solvers
...
...
2)Copy the unziped folder of "AAA toolbox" into the
"toolbox folder" of the MATLAB
setup directory in your computer.
3)Open the MATLAB. File->Set Path
->Add with subfolders ->Finding the
directory you just copying
->Save->Close->Restart
MATLAB。
4)Using command: addpath(genpath('yourlocation/AAA'))
Then, OK!!!