How can I use the Find Files tool to simultaneously modify all text occurences across a number of MATLAB files in MATLAB?

4 views (last 30 days)
I am using the Find Files tool to locate occurrences of a certain function call "myfunc" in group of MATLAB files. I am able to locate all calls to "myfunc(x)", and would like to replace these calls with "myfunc(y)" without having to go through each file listing and modifying it manually.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 15 May 2025
Edited: MathWorks Support Team on 15 May 2025
The ability to simultaneously replace multiple occurrences of a statement in different files from the Find Files tool is available starting with MATLAB R2025a. 

More Answers (0)

Categories

Find more on Characters and Strings in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!