MATLAB: Manipolation of cell array and

cellcell arraysforfor loop

I have three cell array as per below and I would like to create a for loop that read directly one per time the three array and do the sum of the numeric value (columns 3 and for) for each groups. Is it possible?
Groups{1}
Groups{2}
Groups{3}
ans =
'a' 'b' [1] [2] [3]
'a' 'b' [3] [4] [5]
ans =
'b' 'z' [3] [4] [5]
'b' 'z' [4] [5] [6]
ans =
'r' 't' [5] [6] [7]
'r' 't' [6] [7] [8]

Best Answer

Do you want to sum the 3rd and 4th column all together or separately? Anyway, it should be similar to this.
Out=zeros(size(Groups));
for k=1:numel(Groups)
Out(k)=sum([Groups{k}{:,3}]);
end