How to parse the file name and rename in Matlab

Posted by Paul on Stack Overflow See other posts from Stack Overflow or by Paul
Published on 2010-03-16T16:12:09Z Indexed on 2010/03/16 16:31 UTC
Read the original article Hit count: 175

Filed under:
|
|
|

I am reading a .xls file and then procesing it inside and rewriting it in the end of my program. I was wondering if someone can help me to parse the dates as my input file name is like file_1_2010_03_03.csv

and i want my outputfile to be

newfile_2010_03_03.xls

is there a way to incorporate in matlab program so i do not have to manually write the command
xlswrite('newfile_2010_03_03.xls', M); everytime and change the dates as i input files with diff dates
like file_2_2010_03_04.csv.

Thanks

© Stack Overflow or respective owner

Related posts about matlab

Related posts about parsing