transform matrices into a single matrix?
이전 댓글 표시
how I can transform matrices into a single matrix? I have 20 - 6x6 matrices, and I need to create 1 matrix for cluster analysis. Thanks!
댓글 수: 5
KSSV
2016년 10월 6일
what dimension of matrix you want at the end?
luca buonocore
2016년 10월 6일
Marc Jakobi
2016년 10월 6일
If you have 20 6x6 matrices, that's a total of 20*6*6 values = 720 values. In an output with 20 rows and 6 columns, you can only fit 120 values. Are you sure you want a 20x6 matrix?
luca buonocore
2016년 10월 6일
KSSV
2016년 10월 6일
Whats is the criteria for hierchical clustering..
채택된 답변
추가 답변 (1개)
elias GR
2016년 10월 6일
Make a 3D matrix. If your 6x6 matrices are in the variables A1,A2,...,A20, then:
A=zeros(6,6,20);
A(:,:,1)=A1;
A(:,:,2)=A2;
...
A(:,:,20)=A20;
At the end all the matrices are inside 1 matrix as you wished, A.
댓글 수: 3
luca buonocore
2016년 10월 6일
elias GR
2016년 10월 6일
Give us a specific numerical example of what you need
luca buonocore
2016년 10월 6일
카테고리
도움말 센터 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!