Installing a file from fileexchange

I would like to use files such as
Please advise which directory should I put these files.

1 件のコメント

Stephen23
Stephen23 2018 年 4 月 22 日

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 件)

Jan
Jan 2018 年 4 月 22 日

0 投票

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 ExchangeSearch Path についてさらに検索

製品

タグ

質問済み:

2018 年 4 月 22 日

コメント済み:

2018 年 4 月 22 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by