Concatenate multi dimensional matrix
이전 댓글 표시
I have a matrix which has these 3rd dimensions or pages. A(:,:,1), A(:,:,2), A(:,:,3)
Now, I wanted these three to be vertically concatenated. But i'm looking for an algorithm like in a for sentence for do it in large scale.
I know this: b = cat(1,a(:,:,i)) but i don't have the entire matrix in b because its override. Thank you.
채택된 답변
추가 답변 (1개)
Matt J
2018년 10월 12일
Another way,
Acell=num2cell(A,[1,2]);
B=vertcat(Acell{:});
카테고리
도움말 센터 및 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!