필터 지우기
필터 지우기

Formatting Time Strings

조회 수: 1 (최근 30일)
Syed Abbas
Syed Abbas 2012년 1월 9일
I have a vector of time strings which look like this: ' 2011/11/01 09:00:00.792'. I want this string to look like this: 20111101090000792. How can I acheive that. Thanks.

채택된 답변

Sean de Wolski
Sean de Wolski 2012년 1월 9일
One of many ways:
str = ' 2011/11/01 09:00:00.792'
str2 = str(isstrprop(str,'digit'))

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Characters and Strings에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by