Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
query about grouped data
조회 수: 1 (최근 30일)
이전 댓글 표시

i have dataset (image attached) and i want to group data for every 5 rows...
댓글 수: 1
jgg
2015년 12월 12일
편집: jgg
2015년 12월 12일
I think you need to provide more information; what do you mean by group? There are lots of different ways to group and combine data, and it's unclear what you're trying to do.
The simplest way to start would be just create a new vector v = [1:n] where n is the number of rows, then create grouping variable g = floor(v./5). You can then go from there to do whatever you want to do.
답변 (0개)
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!