How to join several matrices into one matrix?
显示 更早的评论
Hello,
I have a variable in a form of a matrix but repeat several times, 4794 rows, 1 column and 588 files, e.g. 4794x1x588 double. However, I want a matrix that join all the columns in the same matrix, having 4794 rows and 588 columns all in the same matrix, like this: 4794x588 double.
I'll appreciate any help. Martha
采纳的回答
更多回答(1 个)
Iain
2014-2-24
Either of these will do what you've asked.
matrix = reshape(matrix,4794,588);
matrix = permute(matrix,[1 3 2]);
类别
在 帮助中心 和 File Exchange 中查找有关 Matrix Indexing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!