You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
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://in.mathworks.com/matlabcentral/fileexchange/90436-codesearch), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.0.1 (2.55 KB)
MATLAB Release Compatibility
- Compatible with R2019b to R2021a
Platform Compatibility
- Windows
- macOS
- Linux