Pivot/unPivot

Group a flat dataset into pivot table and unpivot it back

이 제출물을 팔로우합니다

These two functions are meant to format a flat dataset into a pivot table and to unpivot it back.
They imitate the T_SQL pivot/unpivot commands or the pivoting functionalities of the spreadsheet softwares.

If you a have a large set of values which are described by two features (or more) this function allows you to group those values by those two features.

For example, you can sum to the total amount sold over the last 10 months by any of your employees or you can count the number of contracts signed by region and by salesmen and so on...

For detailed help and description see the published M-file or the help of the functions.

For examples see the attached snapshot.

Comments/suggestions/error reports are welcome.

Thanks to Jos (10584) for cell2float.

p4v3

인용 양식

Oleg Komarov (2026). Pivot/unPivot (https://kr.mathworks.com/matlabcentral/fileexchange/26119-pivot-unpivot), MATLAB Central File Exchange. 검색 날짜: .

도움

도움 받은 파일: CELL2FLOAT

도움 준 파일: mat2piv.m

카테고리

Help CenterMATLAB Answers에서 Tables에 대해 자세히 알아보기

일반 정보

MATLAB 릴리스 호환 정보

  • 모든 릴리스와 호환

플랫폼 호환성

  • Windows
  • macOS
  • Linux
버전 퍼블리시됨 릴리스 정보 Action
1.2.0.0

unPivot: fixed column position in Out (the first was switched with the second)

1.1.0.0

Corrected syntax for compatibility; edited description; added link to the submission

1.0.0.0