CELL to Matrix (Time/Date data)

1 view (last 30 days)
G
G on 15 Jun 2016
Commented: G on 15 Jun 2016
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!

Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 15 Jun 2016
load cell2date
out=regexp(c,'\d+:\d+','match','once')
  3 Comments
Azzi Abdelmalek
Azzi Abdelmalek on 15 Jun 2016
Edited: Azzi Abdelmalek on 15 Jun 2016
you can use datevec
out=datevec(c,'yyyy-mm-dd HH:MM:SS')
G
G on 15 Jun 2016
thank you Azzi!!!!
is what i need
kind regards

Sign in to comment.

More Answers (0)

Categories

Find more on Dates and Time in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!