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 Exchange에서 Search 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