Is there an option to recursively add directories to the path without using GENPATH?
조회 수: 94 (최근 30일)
이전 댓글 표시
MathWorks Support Team
2009년 6월 27일
댓글: Brando Miranda
2016년 3월 23일
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!