How to unfold/concatenate a 3D Matrix?
2 次查看(过去 30 天)
显示 更早的评论
I have a 3D matrix of 100x21x100 and I want to perform a vertical unfolding, i.e., to get a 10000x21 matrix.
Thanks for your attention.
0 个评论
采纳的回答
Stephen23
2022-1-10
Making some guesses about the order you want, where A is your array:
B = reshape(permute(A,[1,3,2]),[],21)
更多回答(0 个)
另请参阅
类别
在 Help Center 和 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!