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.

回答(1 个)

Mischa Kim
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
  2 个评论
Tanmoyee Bhattacharya
If I have 100 files in a folder by name wflux_23.25_86.75 and I have to change the name of the files in that folder by data_23.25_86.75 what I have to do?

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

标签

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by