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

5 次查看(过去 30 天)
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.

采纳的回答

MathWorks Support Team
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.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Environment and Settings 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by