How can I use some downloaded function?
66 ビュー (過去 30 日間)
古いコメントを表示
I downloaded some functions files with a script file from Mathworks website. Every time I run this script, it tells me that these function are not recognized. How can I make MATLAB call them as the built-in functions?
0 件のコメント
採用された回答
BN
2020 年 7 月 27 日
編集済み: BN
2020 年 7 月 27 日
Hello
In order to use downloaded function you can click on the Set Path in the home menu:
And then click on the add folder and choose the folder that contains your desire function; then click save.
Alternatively, you can use this:
addpath D:\whatever_your_function_is
% then
savepath
3 件のコメント
BN
2020 年 7 月 27 日
For example, you want to add five functions at the same time, so you need to download them and put ".m" file of them in the same folder (like D:\Newolder ) then add this folder using the set path. Alternatively you can add all 5 functions manually one by one (no matter where they are.
その他の回答 (1 件)
Steven Lord
2020 年 7 月 27 日
Where on the MathWorks website did you download the files? If you downloaded them from the File Exchange, I recommend using the Add-On Explorer to simplify the process of making those files available to MATLAB.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Downloads についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!