MATLAB: How to obtain data from elements in cell arrays

arraycell arraysindexing

I have a cell array A that is a 1×1600 cell.
Each element in the cell has a 2500×3 array.
I need to take the second column of each element as use it in my calculation.
Using A{2} I get the whole second 2500×3 array. What line of code should I write to retrieve only the second column of this 2300×3 array.
Basically I need the (:,2).
I hope I was clear enough.
I am new to cell arrays, would really appreciate help

Best Answer

Hans123 - try doing
A{2}(:,2)
to get the second column of the second element of A.
Related Question