string to number
이전 댓글 표시
Hi I have an array which looks like this:
'''27/01/2012 15:30:00'''
'''27/01/2012 15:31:33'''
'''27/01/2012 15:49:19'''
'''27/01/2012 15:49:19'''
'''27/01/2012 15:50:26'''
I want to just have the TIME and in a NON-STRING format. Any help?
댓글 수: 3
Friedrich
2012년 2월 14일
You cant keep the format 15:30:00 when using a a non string format. only way is an numeric array of the ascii value of each char. but this doesnt make much sense.
You can use the datenum function to convert the time in a numerical value, e.g. datenum('15:30:00','hh:mm:ss'). The important question is why do you need a Non String format and what would you do with it.
Mate 2u
2012년 2월 14일
Mate 2u
2012년 2월 14일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Dates and Time에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!