Hello,
I have a 50×1 cell array. Each cell is a 2×1 array.
A = {2×1 cell;
2x1 cell; 2x1 cell etc}
if I get into every cell I have cell = {a b}
I am trying to access each string in the 2×1 cell for all rows (a and b).
So if my array is called A this is the function I am using to extract the each column of the inside cell for all rows:
A = cellfun(@(x) x{:,1}{:,1}, A, 'UniformOutput',0)
B = cellfun(@(x) x{:,1}{:,2}, A, 'UniformOutput',0)
I am getting the following error: "Cell contents reference from a non-cell array object".
I was wondering if anyone can help me accessing those two columns of my multiindex cell array.
Thank you very much
Best Answer