You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
This is similar to grep in Unix. Recursive search. Ignore certain files and directories.
Example 1: Do the following search:
(a) Root directory is 'dlog'.
(b) Include all subdirectories under 'dlog'.
(c) Search for all files.
(d) Include any line that has the word 'TODO' in it. Case-sensitive.
>> searchtext('dlog', 'TODO', '', 1);
OR
>> searchtext('dlog', '*', '', '*', '', 'TODO', '', 1);
Do 'help searchtext" to see all examples.
The zipfile contains 3 files:
searchtext.m
searchfile.m
searchdir.m
All 3 files are fully documented in H1.
Cite As
Kevin (2026). searchtext (https://www.mathworks.com/matlabcentral/fileexchange/15121-searchtext), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.0.0.0 (7 KB)
-
No License
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 |
