Is there an option to recursively add directories to the path without using GENPATH?
94 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
MathWorks Support Team
am 27 Jun. 2009
Kommentiert: Brando Miranda
am 23 Mär. 2016
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'));
Akzeptierte Antwort
MathWorks Support Team
am 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.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Search Path finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!