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일

0 개 추천

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
Tanmoyee Bhattacharya 2015년 6월 19일
Thanks for reply.It works
Tanmoyee Bhattacharya
Tanmoyee Bhattacharya 2015년 6월 19일
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?

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

제품

태그

질문:

2015년 6월 19일

댓글:

2015년 6월 19일

Community Treasure Hunt

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

Start Hunting!

Translated by