Hi all,
Someone can tell me please how to convert this cells to matrix (dates) and split the date by hour and minute?
thank you!

 採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2016 年 6 月 15 日

0 投票

load cell2date
out=regexp(c,'\d+:\d+','match','once')

3 件のコメント

G
G 2016 年 6 月 15 日
Hi Azzi,
I was unclear with my question, I just want to pass the cell vector to a double (matrix) , spliting the time and date.
apologies for the missunderstood , do you know how to change a cell2mat (for date and time vectors)?
thank you in advance
Azzi Abdelmalek
Azzi Abdelmalek 2016 年 6 月 15 日
編集済み: Azzi Abdelmalek 2016 年 6 月 15 日
you can use datevec
out=datevec(c,'yyyy-mm-dd HH:MM:SS')
G
G 2016 年 6 月 15 日
thank you Azzi!!!!
is what i need
kind regards

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeDates and Time についてさらに検索

製品

質問済み:

G
G
2016 年 6 月 15 日

コメント済み:

G
G
2016 年 6 月 15 日

Community Treasure Hunt

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

Start Hunting!

Translated by