Info
This question is closed. Reopen it to edit or answer.
Read file name to regexp function
1 view (last 30 days)
Show older comments
Hi,
Can somebody help me to modify the code below to obtain the output: matchStr = 'TRMM_1998_01_newntcl.csv
str = 'TRMM_1998_01_newntcl.csv';
expression = '\w*TRMM';
month_to_match = 1;
str_for_month = sprintf('%02d', month_to_match);
matchStr = regexp(str,expression,'match');
1 Comment
Answers (0)
This question is closed.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!