how I do header extraction from file?

2 vues (au cours des 30 derniers jours)
Lilya
Lilya le 8 Sep 2017
Commenté : Lilya le 20 Oct 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

Réponse acceptée

Walter Roberson
Walter Roberson le 10 Sep 2017
S = '%TimeStamp: 2017 07 02 05 00 00';
datetime(sscanf(S, '%%TimeStamp: %d%d%d%d%d%d').')
  1 commentaire
Lilya
Lilya le 20 Oct 2017
Thank you so much

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur File Operations dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by