Concatenation of 3D Array into 2D Array
显示 更早的评论
Sorry if this is a bit of an elementary issue, but I could use some help concatenating a 3D matrix (20x12x30), A, into a 2D matrix (20x360),B, so that
B(:,1:12) = A(:,:,1)
B(:,13:24) = A(:,:,2)
etc.
I'm hoping to do this outside of a loop to save some computing time.
采纳的回答
更多回答(1 个)
Azzi Abdelmalek
2014-2-17
A=rand(20,12,30)
B=A(:,:)
1 个评论
Mariana
2017-11-22
This concatenate horizontally. How to concatenate vertically?
类别
在 帮助中心 和 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!