PCA matrix indexed by Day
이전 댓글 표시
Hi,
I have successfully run a PCA on one 17x40 matrix using princomp matlab function. But each matrix is indexed by day. Now I would like to get the PCA from 30 days,60 and 90 days (example : 30 days of 17x40 matrix). Do you know the best way to do it?
Thank you for your help.
답변 (1개)
Matt Tearle
2011년 4월 29일
0 개 추천
How are the matrices stored? Chances are, this is probably time for an old-fashioned for-loop, possibly using 3-D arrays.
댓글 수: 2
SergeK
2011년 4월 29일
Matt Tearle
2011년 5월 3일
Right, PCA is a method for transforming p-dimensional space, in which the n observations live. So it's inherently a matrix operation. So the real question is how are you trying to interpret what you want to do? Do you want each of the 30 days to be an observation? It sounds that way, but then what are the 17 rows that you currently have? Perhaps you need to reshape your data into 17*30 rows and 40 columns. Or perhaps you need to do some kind of averaging or other aggregation. It's hard to say without knowing the point of what you're doing or what you're hoping to get out of it at the end.
카테고리
도움말 센터 및 File Exchange에서 Pattern Recognition에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!