extract numbers from time series
이전 댓글 표시
Have a time series from 1 to 156. Want to extract the values from 1:6, then from (1+12) : (6+12), etc into a new variable. How to go about.
댓글 수: 6
Adam Danz
2018년 8월 13일
That's not enough in your example for anyone to extrapolate the pattern you seek. For example, would the subunits be 1:6, 13:18, 14:19, 15:20? Or 1:6, 13:18, 19:24,... ?
Johannes Deelstra
2018년 8월 13일
Adam Danz
2018년 8월 13일
What format are your dates in?
class(data(:,5))
Johannes Deelstra
2018년 8월 13일
Adam Danz
2018년 8월 13일
Ok. If the numbers are serial date numbers that matlab recognizes, my solution should work well. Otherwise, we'd just need to convert them to a format that Matlab recognizes which should be fairly simple.
Johannes Deelstra
2018년 8월 13일
채택된 답변
추가 답변 (1개)
카테고리
도움말 센터 및 File Exchange에서 Dates and Time에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!