codesearch
We've all been there... you know you wrote some code somewhere which would help you finish your task but you can't quickly remember where. Perhaps you need to update a graph in your thesis that you prepared a year ago and you know the y-axis label, or you want to remember how you applied a particular function in your code a while back.
The codesearch function is a simple way to quickly search all your m-files for a particular search term. The function lists the matching m-files in the Command Window along with hyperlinks for:
(i) opening the m-file in the MATLAB Editor and
(ii) changing the Current Folder to the directory of the matching m-file.
Additional functionality is described in the help text for the codesearch.
Cite As
Turlough Hughes (2026). codesearch (https://www.mathworks.com/matlabcentral/fileexchange/90436-codesearch), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxTags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.