MATLAB: How to concatenate N matrices

matrix manipulation

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

Best Answer

out = cat(1,data.data);