Search for string(s) within a large number of scripts located recursively within an input directory, in order to iteratively narrow down the location of a particular piece of code, as opposed to manual search. Handy for people who work on many projects and find themselves at times having to re-visit old forgotten code.
Jakob Sievers (2021). scriptsearch (https://www.mathworks.com/matlabcentral/fileexchange/45696-scriptsearch), MATLAB Central File Exchange. Retrieved .
Inspired: Ogive optimization toolbox
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Create scripts with code, output, and formatted text in a single executable document.
this is actually quite handy and simple to use, thanks a lot
Why not just use MATLAB's inbuilt Find Files tool?
https://www.mathworks.com/help/matlab/matlab_env/finding-files-and-folders.html
MATLAB's inbuilt Find Files tool also has the option to recursively search folders, as well as matching different filename and filetype patterns. The results of each search are kept in tabs, so you can easily compare and/or copy-and-paste the results to get one combined list, if that is what you need.
Chang hsiung: Thanks for the feedback. Changes made according to your wish.
Best
Jakob
pls change the following:
elseif isstring(str)
to
elseif ischar(str)