How to rename a function, its calls and its file name
3 views (last 30 days)
Show older comments
Hi,
I need to rename several functions, and for each function also rename its file name and all of the calls to that function throughout the model. I have searched through Matlab central and I find a lot of examples on how to rename files, but I haven't found any that show a way to rename a function and update all of its calls. The "find and replace text in files" page ( http://www.mathworks.com/help/matlab/matlab_prog/find-and-replace-text-in-files.html#bsmltg9) shows how to find text in a folder structure, but not how to find and replace text other than in the current file. Is there a way in MatLab to rename a function along with its filename and calls?
Thanks
Alain
1 Comment
dpb
on 24 Feb 2015
Prepackaged, no...
There are text editors that can be run as batch mode to do global substitution of a group of files, however.
Answers (0)
See Also
Categories
Find more on File Operations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!