char array, cell array or string array
조회 수: 3 (최근 30일)
이전 댓글 표시
How to padd numbers with leading zero or to convert to two digits in cell array, string array or char arrays?
5×16 char array
'2020-01-1-11-15'
'2020-02-5-12-5 '
'2020-04-25-10-30'
'2020-07-15-3-15 '
'2020-12-3-17-6 '
채택된 답변
Walter Roberson
2020년 12월 28일
C = ['2020-01-1-11-15 '
'2020-02-5-12-5 '
'2020-04-25-10-30'
'2020-07-15-3-15 '
'2020-12-3-17-6 ']
char(datetime(cellstr(C), 'InputFormat', 'uuuu-M-d-H-m', 'Format', 'uuuu-MM-dd-HH-mm'))
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Geodesy and Mapping에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!