Changing file name in Matlab
显示 更早的评论
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.
回答(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
类别
在 帮助中心 和 File Exchange 中查找有关 Get Started with MATLAB 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!