Recursive Directory Function Execution
버전 1.0.0.0 (1.62 KB) 작성자:
Rodney Thomson
Recurse through all directories executing the supplied function
Recurses through each directory, passing the full directory path and any extraneous arguments (varargin) to the specified function.
Call Sequence : directoryRecurse(directory, function_pointer, varargin)
IE: To execute the 'rmdir' command with the 's' parameter over 'c:\tmp' and all subdirectories:
directoryRecurse('c:\tmp', @rmdir, 's');
Another useful example, add 'c:\matlab' and all sub directories to the Matlab path:
directoryRecurse('c:\tmp', @addpath);
인용 양식
Rodney Thomson (2026). Recursive Directory Function Execution (https://kr.mathworks.com/matlabcentral/fileexchange/20814-recursive-directory-function-execution), MATLAB Central File Exchange. 검색 날짜: .
MATLAB 릴리스 호환 정보
개발 환경:
R14SP2
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux카테고리
Help Center 및 MATLAB Answers에서 Search Path에 대해 자세히 알아보기
태그
| 버전 | 게시됨 | 릴리스 정보 | |
|---|---|---|---|
| 1.0.0.0 |
