Transforming Timestamps column into various columns

1 回表示 (過去 30 日間)
João
João 2013 年 11 月 26 日
コメント済み: João 2013 年 12 月 6 日
Hi all,
I'm with a problem and can't find the solution for it, hope you can help me.
I have this column;
Timestamps
01/01/2012 09:00
01/01/2012 10:00
01/01/2012 11:00
and now I want to slip it into 4 different columns with:
Day Month Year Hour
01 01 2012 9
The file is in excel.
Thanks.

採用された回答

Andrei Bobrov
Andrei Bobrov 2013 年 11 月 26 日
data = {'01/01/2012 09:00'
'01/01/2012 10:00'
'01/01/2012 11:00'};
v = datevec(data);
out = v(:,1:4);
  1 件のコメント
João
João 2013 年 12 月 6 日
Thx, that's exactly what I was looking for.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

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