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.
Turlough Hughes (2023). codesearch (https://www.mathworks.com/matlabcentral/fileexchange/90436-codesearch), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!