Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
How can I convert a char into numbers
조회 수: 2 (최근 30일)
이전 댓글 표시
if i have a char of numbers at a point in a cell .... say 123519. how can i change it into numbers(its actually a time). how can i then write the numbers in hr:min:sec format so that i have 12:35:19... is there a simpler way I can get that same format?
댓글 수: 0
답변 (1개)
Walter Roberson
2015년 11월 6일
mycell = {'123519', '123525', '041148'}
result = regexprep(mycell, '(\d\d)(\d\d)(\d\d)', '$1:$2:$3');
댓글 수: 0
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!