Changing file name in Matlab
Show older comments
I nave a file named wflux_23.25_86.75.I have to change the name of the file as data_23.25_86.75.How can we do this in Matlab.
Answers (1)
Mischa Kim
on 19 Jun 2015
Tanmoyee, use the strrep command
str = 'wflux_23.25_86.75';
str_new = strrep(str, 'wflux', 'data')
str_new =
data_23.25_86.75
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!