필터 지우기
필터 지우기

converting date and time ind text format to a number

조회 수: 1 (최근 30일)
Adam
Adam 2011년 8월 5일
I currently have a lot of measurements data, which has been logged in a .csv file with date and time ind the format: "dd/mm/yyyy hh:mm:ss". I want to sort the data by date and time, and therefore i would like to store the date/time in a variable like A = [date,time] in the format date = ddmmyyyy and time = hhmmss. The date/time data is currently stored in a very large collum vector in a string format!
How can i do that?
  댓글 수: 1
Jan
Jan 2011년 8월 5일
How are the date strings separated in the "very large column vector"? Please post an example.

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

채택된 답변

Daniel Shub
Daniel Shub 2011년 8월 5일
doc datenum
doc datestr

추가 답변 (1개)

Jan
Jan 2011년 8월 5일
For sorting the serial date number is more efficient: see DATENUM.

카테고리

Help CenterFile Exchange에서 Dates and Time에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by