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

120 views (last 30 days)
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'));

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
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.

More Answers (0)

Categories

Find more on Search Path in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!