필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Read file name to regexp function

조회 수: 2 (최근 30일)
Damith
Damith 2015년 5월 7일
마감: Walter Roberson 2015년 5월 8일
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');

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by