can I replace a string in all Matlab .m files under a folder?



Hi all,

Does the Matlab Editor have the following feature:

Change string "XXXX" to "YYYY" in all the .m files under a folder, possilby
recursively?

Moreover,

How to write a program in Matlab to change the strings

"XXXX1" to "YYYY1"
"XXXX2" to "YYYY2"

....

....

In all .m files under a folder, based on a give list of XXXX and YYYY
strings?

Can anybody show me how to write such a program to do this task?

Thanks a lot!

----------------

Or, maybe the Perl in Matlab can help? Being not a Perl user, could anybody
give me the example of exactly how to do this?

Thanks!







.



Relevant Pages