MATLAB Answers

0

How to concatenate several matrix into one

Asked by Akhmad Muktaf on 15 Nov 2019 at 17:53
Latest activity Edited by Akhmad Muktaf on 15 Nov 2019 at 18:16
I have 18 matrix with each size is 11 x 175. I want concanntenate into one matrix. So my next matrix become 198 * 175.
What should I do?
Any comment will be appreciate
Thank you
Akhmad

  0 Comments

Sign in to comment.

1 Answer

Answer by David Hill on 15 Nov 2019 at 17:58
 Accepted Answer

newMatrix=horzcat(a,b,c,d,e,...);

  1 Comment

But I want develop into vertical array, this my coding. Unfortunately the content of each matrix is zero.
for k = 1:numberfiles
XX{nomorfiles}=['RSL_all' num2str(nomorfiles) '.txt'];
RSL_allNew=vertcat(XX{k})
end

Sign in to comment.