How to include a function into the main directory
2 ビュー (過去 30 日間)
古いコメントを表示
I've created some functions that I use often. I'm wondering if there's any way to make it so that the functions work even if they're not in the current directory. Basically it would work such as if it was one of the default functions (rand(n)).
Any help will be highly appreciated. Thanks in advance.
0 件のコメント
採用された回答
Kye Taylor
2012 年 10 月 31 日
You can add the directory containging your function to the MATLAB search path. Try
doc pathtool
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Startup and Shutdown についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!