필터 지우기
필터 지우기

Fill missing observations for a sensor reading.

조회 수: 1 (최근 30일)
Sanley Guerrier
Sanley Guerrier 2023년 7월 13일
댓글: Sanley Guerrier 2023년 7월 14일
Hello, the data was supposed to record sensor reading for calendar year 2005. The frequency is quarter hour "QHR" (0 to 3) every 15 minute. How can I fill the missing values in the frequencies for the length of the data is equal to the calendar year 2005. I attached a picture of the data bellow. Appriciate your help!

채택된 답변

Walter Roberson
Walter Roberson 2023년 7월 13일
I suggest you use table2timetable and then retime
  댓글 수: 1
Sanley Guerrier
Sanley Guerrier 2023년 7월 14일
I tried to convert to this format below and used table2timetable, the part "hh:mm:ss" is constant everywhere. how do I fix this issue to move on to the next step (retime)? Thank you!
>> dfy = convertvars(dfy, @isdatetime, @(t) datetime(t, 'Format', 'yyyy-MM-dd hh:mm:ss'));
>> T = table2timetable(dfy);

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Dates and Time에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by