MATLAB: How to sum rows within cell arrays

MATLABsum

Hi all
how to sum rows within cell arrays?
array1 = {[4,3.3,2.5,0.71];[3.4,2,1,0.3]}
Result may look like this:
result = {[10.51];[6.7]}

Best Answer

for i=1:length(array1)
result{i}=sum(array1{i},2);
end