Hi do you know an easy way to concentrate 88 matrices into one matrix
2 ビュー (過去 30 日間)
古いコメントを表示
Hi do you know an easy way to concentrate 88 matrices into one matrix
0 件のコメント
回答 (3 件)
Walter Roberson
2012 年 9 月 9 日
1 件のコメント
Jan
2012 年 9 月 9 日
A link to the FAQ is valuable always. And if you are there already, read the other topics also.
Image Analyst
2012 年 9 月 9 日
If they are all separate matrices with separate names, maybe the easiest way is:
allMatrices = [m1(:); m2(:); m3(:); etc. m87(:); m88(:)];
2 件のコメント
Image Analyst
2012 年 9 月 9 日
編集済み: Image Analyst
2012 年 9 月 9 日
That would work if they were all the same sizes in all dimensions.
Like Walter hints at, I'm wondering how he ended up with 88 differently-named matrices in the first place. I'm sure that could have been avoided and made more orderly.
Jan
2012 年 9 月 9 日
It would be easy, if the matrices are not called m1, m2, ... m88, but if a cell is used: m{1}, m{2}, ... m{88}. Then:
joined = cat(1, m{:}); % Or cat(2, m{:})
This is explained in the important link posted my Walter.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Data Type Identification についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!