Date: Aug 2, 2012 2:44 AM
Author: Antonio Valentine
Subject: Sum of cell array

Hello I have less experince in using the cell array before. I need some help. 

Here it goes,

I have a cell array "D" like this.
{29x10 cell} {40x10 cell}
{37x10 cell} []

Each element
>> D{1,1}{1:10,10} % go for 10 arrays.
ans =
0 0 0
ans =
0 0 0
ans =
0 0 0
ans =
0 0 0
ans =
0 3 0
ans =
0 0 0
ans =
0 7 0
ans =
0 0 0
ans =
0 0 0
ans =
6 6 6

I want to keep the results to only 1 variable e.g., D_temp{1,1}{1,1} = [6 16 6].

Basically, I want to have a summation along the dimension "c" -- {a,b}{c,d}.

What are the function should I use including all the statiscal functions too.

Thank you in your kindly help