Installing a file from fileexchange

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

1 comentario

Stephen23
Stephen23 el 22 de Abr. de 2018

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\... ).

Iniciar sesión para comentar.

Respuestas (1)

Jan
Jan el 22 de Abr. de 2018

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

Categorías

Más información sobre Search Path en Centro de ayuda y File Exchange.

Productos

Etiquetas

Preguntada:

el 22 de Abr. de 2018

Comentada:

el 22 de Abr. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by