MATLAB: How to concatenate each element of a cell array across rows

cell arraysMATLABmatrixmatrix manipulation

I have a cell array of dimension 64×8 in which each row is comprised of the following dimension,
Say,
260x1 double 260x1 double 260x1 double 260x1 double 260x1 double 260x1 double 260x1 double 260x1 double
Now i need to horizontally concatenate each 260×1 element across the 8 rows, so i would get a 2080×1 matrix in a single cell. where 2080 is the product of 260×8 (along 8 rows). and this should transform the 64×8 Cell array to 64×1 array.
So i must get the output like the below,
2080x1
2080x1
......
......
......
2080x1
And kindly let me know if i have a way to do it without loops.

Best Answer

for i=1:size(a,1)
a(i)={horzcat(a{i,:})};
a{i,1}=reshape(a{i,1},2080,1);
end
a(:,2:size(a,2))=[];