Is there an option to recursively add directories to the path without using GENPATH?

94 ビュー (過去 30 日間)
I would prefer to recursively add directories to the path using an option to ADDPATH, such as:
addpath('C:\Foo', 'subdirectories');
instead of using the GENPATH function:
addpath(genpath('C:\Foo'));

採用された回答

MathWorks Support Team
MathWorks Support Team 2009 年 6 月 27 日
The ability to specify directory recursion without using the GENPATH function is not available in MATLAB.
One possible workaround is to overload the ADDPATH function that includes the desired functionality.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSearch Path についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by