Create matrix based off date
信息
此问题已关闭。 请重新打开它进行编辑或回答。
显示 更早的评论
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!
0 个评论
回答(1 个)
Walter Roberson
2018-5-22
0 个投票
Convert to a timetable() object and use retime()
5 个评论
Walter Roberson
2018-5-22
Oh wait -- is the question about finding max/min/average for the day, or is it about re-arranging the data so that all of the data for one day is in one row?
Devon Fisher-Chavez
2018-5-22
Walter Roberson
2018-5-22
Provided that the data has full days:
reshape(YourData, 48, []).'
Devon Fisher-Chavez
2018-5-23
Devon Fisher-Chavez
2018-5-23
此问题已关闭。
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!