필터 지우기
필터 지우기

Problem with data type: calculate [HH:mm:ss.FFF]

조회 수: 2 (최근 30일)
René Dienemann
René Dienemann 2020년 3월 25일
답변: Steven Lord 2020년 3월 25일
Hey, I need an easy way, to convert this time from [HH:mm:ss.FFF] into seconds. I have tried different ways, but I always have problems with the type of the data.
If I convert the data from str2double, I get "NaN" or can I seperate "HH, mm, ss, FFF" to calculate the seconds?
Thanks and best regards René

답변 (1개)

Steven Lord
Steven Lord 2020년 3월 25일
Convert the text representations of those values into a duration array then call seconds on the duration array.

카테고리

Help CenterFile Exchange에서 Data Type Conversion에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by