Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

Read file name to regexp function

2 Ansichten (letzte 30 Tage)
Damith
Damith am 7 Mai 2015
Geschlossen: Walter Roberson am 8 Mai 2015
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');

Antworten (0)

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by