Reading time from the text

1 vue (au cours des 30 derniers jours)
Vijay Sagar
Vijay Sagar le 8 Mai 2021
Commenté : Vijay Sagar le 8 Mai 2021
Hi everyone! How to read time (only hh:mm) from the text file (attached file). The first two digits represent the day of the month (DD), the second two-digit represent hours (hh) of the day, and the third two digits represent minutes (mm).
011300
021130
311400
311430
311500 ...
Can someone give me some hint?
  2 commentaires
VBBV
VBBV le 8 Mai 2021
Use datetime function or datenum
Vijay Sagar
Vijay Sagar le 8 Mai 2021
Thanks a lot. It works. Example:
datenum('112230','ddhhmm')

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Text Data Preparation dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by