Installing a file from fileexchange
1 Comment
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\... ).
Answers (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
Categories
Find more on Search Path in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!