필터 지우기
필터 지우기

How to convert timeframes

조회 수: 8 (최근 30일)
Elise Heirman
Elise Heirman 2021년 4월 5일
답변: Maadhav Akula 2021년 4월 21일
I have a video of 5 frames/second (or 1frame/0.2 seconds). Hereby I have 276575 frames. I want to plot these timestamps, but I don't know how to do this. I already have this. But it doesn't work because I have an interval of 0.20 sec between two frames and not 1 millisecond. Can anyone help me?

답변 (1개)

Maadhav Akula
Maadhav Akula 2021년 4월 21일
Hi Elise,
I believe you want to modify the Time Interval to be 0.2 seconds(or 200 milliseconds) uniformly, for that please utilize the setuniformtime method of timeseries object. Refer the following code snippet:
ts1out = setuniformtime(ts1, 'Interval', 200) % Setting the Interval to be 200ms, which is equal to 0.2s
Hope this helps!

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by