Changing file name in Matlab
4 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
回答(1 个)
Mischa Kim
2015-6-19
Tanmoyee, use the strrep command
str = 'wflux_23.25_86.75';
str_new = strrep(str, 'wflux', 'data')
str_new =
data_23.25_86.75
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!