MATLAB: How to manipulate specific elements in a cell array

cellcell arraysmatrix manipulation

I have written a code that gives me a cell array containing several cells with the same dimensions, e.g.
cellarray = {6x2 double} {6x2 double} {6x2 double}
I want to change these such that the first row of each cell is entered into a single array, i.e. the first row of the first cell becomes the first row of a new array, the first row of the second cell becomes the second row of the same new array and the first row of the third cell becomes the third row of the new array. Then the second row of the first cell is entered into a separate new array, with the second row of the second and third cell and so on. How can I achieve this?

Best Answer

cell2mat(cellarray)