converting date and time ind text format to a number

4 ビュー (過去 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 Center および File ExchangeDates and Time についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by