How do I concatenate N matrices

5 vues (au cours des 30 derniers jours)
Tariq Ahmed Abul Kalam Azad
I have N matrices of equal columns.Now i want to concatenate them vertically.I have like 40 matrices. Is it possible for me to use for loop to concatenate N matrices vertically?
Matrices have name data(1,1).data to data(40,1).data I cant do A = vertcat(data(1,1).data,data(2,1).data,data(3,1).data and so on)
I need a loop for this from i=1:40

Réponse acceptée

Andrei Bobrov
Andrei Bobrov le 9 Sep 2014
out = cat(1,data.data);
  1 commentaire
Tariq Ahmed Abul Kalam Azad
Thanks.My code works now

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by