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

changeeditfilefindmassMATLABreplace

I am using the Find Files tool to locate occurences of a certain function call myfunc() in group of MATLAB files. I start the Find Files tool from the MATLAB Desktop by selecting Edit->Find 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.

Best Answer

The ability to simultaneously replace multiple occurences of a statement in different files from the Find Files tool is not available for MATLAB.
To work around this issue, you will need to modify each listing manually by double-clicking on the file name from within the Find Files tool followed by making the modifications from within the file itself.