Hi do you know an easy way to concentrate 88 matrices into one matrix

조회 수: 2 (최근 30일)
Abdullah
Abdullah 2012년 9월 9일
Hi do you know an easy way to concentrate 88 matrices into one matrix

답변 (3개)

Walter Roberson
Walter Roberson 2012년 9월 9일
  댓글 수: 1
Jan
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
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
Jan
Jan 2012년 9월 9일
Or perhaps without "(:)".
Image Analyst
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
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.

카테고리

Help CenterFile Exchange에서 Data Type Identification에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by