Borrar filtros
Borrar filtros

Fill missing observations for a sensor reading.

1 visualización (últimos 30 días)
Sanley Guerrier
Sanley Guerrier el 13 de Jul. de 2023
Comentada: Sanley Guerrier el 14 de Jul. de 2023
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!

Respuesta aceptada

Walter Roberson
Walter Roberson el 13 de Jul. de 2023
I suggest you use table2timetable and then retime
  1 comentario
Sanley Guerrier
Sanley Guerrier el 14 de Jul. de 2023
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);

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Dates and Time en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by