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!