MATLAB: Identifying the elements of a cell

cell arrays

I have a 700×8 cell, with each cell having a matrix 6×2 in size. I want to get the first row of each cell. How do I perform this?

Best Answer

From my understanding of the question, you can achieve the required task by following snippet of code:
cnt = 1;
for i = 1:700
for j = 1:8
a(cnt) = C{i,j}(1,:); % stores the first row of each cell in a;
cnt = cnt + 1;
end
end