Is there an option to recursively add directories to the path without using GENPATH?
80 次查看(过去 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
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Search Path 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!