How do I concatenate N matrices

4 views (last 30 days)
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

Accepted Answer

Andrei Bobrov
Andrei Bobrov on 9 Sep 2014
out = cat(1,data.data);

More Answers (0)

Categories

Find more on Creating and Concatenating Matrices in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!