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 (2025). Recursive Directory Function Execution (https://jp.mathworks.com/matlabcentral/fileexchange/20814-recursive-directory-function-execution), MATLAB Central File Exchange. に取得済み.
MATLAB リリースの互換性
作成:
R14SP2
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linuxカテゴリ
Help Center および MATLAB Answers で Search Path についてさらに検索
タグ
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!| バージョン | 公開済み | リリース ノート | |
|---|---|---|---|
| 1.0.0.0 |
