how I do header extraction from file?

1 visualización (últimos 30 días)
Lilya
Lilya el 8 de Sept. de 2017
Comentada: Lilya el 20 de Oct. de 2017
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 Workspace Variables and MAT-Files en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by