Pivot table with different operations for columns
조회 수: 13 (최근 30일)
이전 댓글 표시
Suppose I have a table that rows represent yyyymmdd and columns represent height and weights.
I want to create a pivot table that rows represent yyyymm and columns represent average of heights and sum of weights (say).
Please advise how to proceed.
댓글 수: 0
채택된 답변
Peter Perkins
2017년 12월 28일
Look at using a timetable, and look at using varfun with year/month as your grouping variable(s).
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Tables에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!