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 Exchange에서 Dates 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