MATLAB Answers

How to concatenate several matrix into one

1 view (last 30 days)
Akhmad Muktaf
Akhmad Muktaf on 15 Nov 2019
Edited: Akhmad Muktaf on 15 Nov 2019
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.

Accepted Answer

David Hill
David Hill on 15 Nov 2019
newMatrix=horzcat(a,b,c,d,e,...);

  1 Comment

Akhmad Muktaf
Akhmad Muktaf on 15 Nov 2019
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.

More Answers (0)

Sign in to answer this question.