필터 지우기
필터 지우기

Reading time from the text

조회 수: 2 (최근 30일)
Vijay Sagar
Vijay Sagar 2021년 5월 8일
댓글: Vijay Sagar 2021년 5월 8일
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
VBBV
VBBV 2021년 5월 8일
Use datetime function or datenum
Vijay Sagar
Vijay Sagar 2021년 5월 8일
Thanks a lot. It works. Example:
datenum('112230','ddhhmm')

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Text Data Preparation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by