How to parse the file name and rename in Matlab
- by Paul
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