how do I check specific strings of Matlab functions
Afficher commentaires plus anciens
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 commentaires
Adam Danz
le 13 Juil 2018
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?
Geoff Hayes
le 13 Juil 2018
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.
Lalitha Srilal Kannangara Arachchige
le 13 Juil 2018
Modifié(e) : Lalitha Srilal Kannangara Arachchige
le 13 Juil 2018
Réponses (0)
Catégories
En savoir plus sur Entering Commands dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!