Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

Read file name to regexp function

1 visualización (últimos 30 días)
Damith
Damith el 7 de Mayo de 2015
Cerrada: Walter Roberson el 8 de Mayo de 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');

Respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by