Installing a file from fileexchange
1 个评论
Save your files somewhere on your user path (e.g. a subfolder of MyDocuments) and ensure that the directory is on the MATLAB path:
https://www.mathworks.com/help/matlab/matlab_env/what-is-the-matlab-search-path.html
It is also important to know where not to put them: do NOT put downloaded FEX files or your own files anywhere with the program files or toolboxes (i.e. C:\Program Files\MATLAB\... ).
回答(1 个)
You can put it in directory you want to. Maybe an extra directory for all "FileExchange" submissions is possible, or a specific directory for this submissions. Afterwards include this folder in your path by the addpath command or using the GUI pathtool. The latter is opened by the menu "Set Path" in Matlab's command window also.
Example:
mkdir('D:\MyMFiles\FEX\DescriptiveStatistics');
% Copy the files from the submission to this folder...
addpath('D:\MyMFiles\FEX\DescriptiveStatistics');
savepath; % To store it for following calls of Matlab, if you want to do this
类别
在 帮助中心 和 File Exchange 中查找有关 Search Path 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!