3D volume to 2D matrix conversion
이전 댓글 표시
I have a 3D matrix of size 20*22*815 . What is the way that i can generate 2D matrix of 815 rows and 440(20*22) columns
채택된 답변
추가 답변 (1개)
Hamoon
2015년 9월 16일
another possibility:
A = rand(20,22,815); % your matrix
B = reshape(A,440,815)';
The output of this code is equal to Matt's answer.
you can also use B=reshape(A,815,440) without using transpose, then B will be a 815*440 matrix, but the arrangement of data will be different. This is up to you what kind of arrangement you want.
카테고리
도움말 센터 및 File Exchange에서 Logical에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!