how I do header extraction from file?

Hi all, I extracted the numeric data from .tuv file but I still need to extract the date and time which is in the form of
%TimeStamp: 2017 07 02 05 00 00
the above line is just for one file, so I want to extract it from all files. how can I do that?
Thank you so much

 Respuesta aceptada

Walter Roberson
Walter Roberson el 10 de Sept. de 2017
S = '%TimeStamp: 2017 07 02 05 00 00';
datetime(sscanf(S, '%%TimeStamp: %d%d%d%d%d%d').')

Más respuestas (0)

Categorías

Más información sobre File Operations en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 8 de Sept. de 2017

Comentada:

el 20 de Oct. de 2017

Community Treasure Hunt

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

Start Hunting!

Translated by