Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

Create matrix based off date

3 visualizzazioni (ultimi 30 giorni)
Devon Fisher-Chavez
Devon Fisher-Chavez il 22 Mag 2018
Chiuso: MATLAB Answer Bot il 20 Ago 2021
Hello,
I have a vector that I want to convert into a matrix based off date. I have one column (X) with date/time (yyyy-MM-dd HH:mm:ss) and a second column (Y) with my data. The data was taken every 30 min for 4 years. I want to create a matrix from my data (column Y) in which each row has data from one day. I have no clue where to begin, any help is greatly appreciated.
Thanks!

Risposte (1)

Walter Roberson
Walter Roberson il 22 Mag 2018
Convert to a timetable() object and use retime()
  5 Commenti
Devon Fisher-Chavez
Devon Fisher-Chavez il 23 Mag 2018
Thank you.
Our data is imperfect, however. There are a lot of missing points, filtered points, etc. so I would prefer a method that directly tests the time of day.
Devon Fisher-Chavez
Devon Fisher-Chavez il 23 Mag 2018
actually, that works perfectly. the data is filled, plus I'd need filled data to make a matrix anyways... don't know what I was thinking. Thanks!

Questa domanda è chiusa.

Community Treasure Hunt

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

Start Hunting!

Translated by