Vous suivez désormais cette soumission
- Les mises à jour seront visibles dans votre flux de contenu suivi
- Selon vos préférences en matière de communication il est possible que vous receviez des e-mails
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).
Citation pour cette source
Brett Shoelson (2026). collectcode/filesearch (https://fr.mathworks.com/matlabcentral/fileexchange/144-collectcode-filesearch), MATLAB Central File Exchange. Extrait(e) le .
Informations générales
- Version 1.0.0.0 (3,83 ko)
Compatibilité avec les versions de MATLAB
- Compatible avec toutes les versions
Plateformes compatibles
- Windows
- macOS
- Linux
| Version | Publié le | Notes de version | Action |
|---|---|---|---|
| 1.0.0.0 |
