how do I check specific strings of Matlab functions
Mostrar comentarios más antiguos
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 comentarios
Adam Danz
el 13 de Jul. de 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
el 13 de Jul. de 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
el 13 de Jul. de 2018
Editada: Lalitha Srilal Kannangara Arachchige
el 13 de Jul. de 2018
Respuestas (0)
Categorías
Más información sobre Entering Commands en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!