File Exchange

image thumbnail


version (2.19 KB) by Jakob Sievers
Search for strings within multiple scripts

1 Download

Updated 24 Jul 2019

View Version History

View License

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.

Cite As

Jakob Sievers (2021). scriptsearch (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (4)

Chang hsiung

this is actually quite handy and simple to use, thanks a lot

Stephen Cobeldick

Why not just use MATLAB's inbuilt Find Files tool?

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.

Jakob Sievers

Chang hsiung: Thanks for the feedback. Changes made according to your wish.

Chang hsiung

pls change the following:

elseif isstring(str)


elseif ischar(str)

MATLAB Release Compatibility
Created with R2019a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired: Ogive optimization toolbox

Community Treasure Hunt

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

Start Hunting!