how do I check specific strings of Matlab functions

I do have set of Matlab functions and there is specific path set inside of several functions(which I do not know)
Initially folder path is
'C:\EPF' and now I do need to change all of this path to
'C:\EPFx'
for this purpose I do need to find exact functions include this path. Is there any options to find this functions without manual inspection?

3 Comments

Why don't you know what paths are set within the functions? If the paths are set within the functions, why can't you open the function and see what paths are set?
Your question, ' ...I need to find exact functions included in this path', does that mean you have a path and would like to know what functions are stored in a particular directory?
Lalitha - this is where hard-coding the pathname is not always a good idea. In hindsight, the path should be an input parameter that you could pass into your function which would mean that you wouldn't have to now manually change.
Since you don't know which files contain the C:\EPF path, then I would use the MATLAB editor Find Files option for all *.m files that contain the C:\EPF. Once you have that list, it should be trivial to open each file and make the change....preferably by using an input parameter for your new pathname.
The functions are written by other person and I am struggling on editing. Anyway Alt + Ctrl + F works. Thank you Geoff and Adam

Sign in to comment.

Answers (0)

Categories

Tags

Community Treasure Hunt

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

Start Hunting!