collectcode/filesea​rch

版本 1.0.0.0 (3.8 KB) 作者: Brett Shoelson
COLLECTCODE recursively or non-recursively searches for all mfiles;FILESEARCH is a subfunction.
2.7K 次下载
更新时间 2001/5/31

查看许可证

COLLECTCODE recursively or non-recursively searches for all mfiles in the search path. The function then concatenates a textfile (codetext.txt) comprising all of the text of every mfile in the path.

FILESEARCH (which is called by COLLECTCODE, embedded as a subfunction) provides recursive OR non-recursive searching for all files with a specified extension, starting at a user-specified directory. The result is returned in a cell array.

I have used an earlier version of collectcode for a few years now to concatenate my code, and have found it to be an invaluable resource for two reasons. First, it provides a compact, easy-to-update text back-up file for several years' worth of code; and second, it allows me to search very easily for instances of words or phrases within any of my code. This makes it very easy to find all mfiles, for example, which call a certain function.

Both files were tested under MATLAB V6 (R12).

引用格式

Brett Shoelson (2024). collectcode/filesearch (https://www.mathworks.com/matlabcentral/fileexchange/144-collectcode-filesearch), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R12
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 File Operations 的更多信息
标签 添加标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0.0